From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id F26C87F30A for ; Mon, 25 Feb 2013 09:02:55 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of mshinwell@janestreet.com) identity=pra; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mshinwell@janestreet.com"; x-sender="mshinwell@janestreet.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of mshinwell@janestreet.com designates 38.105.200.229 as permitted sender) identity=mailfrom; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mshinwell@janestreet.com"; x-sender="mshinwell@janestreet.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@tot-dmz-mxout1.janestreet.com) identity=helo; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="mshinwell@janestreet.com"; x-sender="postmaster@tot-dmz-mxout1.janestreet.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnMBAGAZK1EmacjlmWdsb2JhbABFhgi7S4ECHg4BAQEBAQgLCwcUJ4IfAQEFQAEBNwEPCwsNLiISAQUBHAYTCIgLA6APinKEOwEFjW4Gjw4Hg0CSf4NBhXWJDhYphCo X-IPAS-Result: AnMBAGAZK1EmacjlmWdsb2JhbABFhgi7S4ECHg4BAQEBAQgLCwcUJ4IfAQEFQAEBNwEPCwsNLiISAQUBHAYTCIgLA6APinKEOwEFjW4Gjw4Hg0CSf4NBhXWJDhYphCo X-IronPort-AV: E=Sophos;i="4.84,732,1355094000"; d="scan'208";a="4322696" Received: from mx5.janestreet.com (HELO tot-dmz-mxout1.janestreet.com) ([38.105.200.229]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Feb 2013 09:02:55 +0100 Received: from [172.27.22.15] (helo=tot-smtp) by tot-dmz-mxout1.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1U9t1U-0002PI-8S for caml-list@inria.fr; Mon, 25 Feb 2013 03:02:56 -0500 Received: from tot-dmz-mxgoog1.delacy.com ([172.27.224.14] helo=mxgoog2.janestreet.com) by tot-smtp with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1U9t1S-0004N8-LY for caml-list@inria.fr; Mon, 25 Feb 2013 03:02:54 -0500 Received: from mail-ve0-f199.google.com ([209.85.128.199]) by mxgoog2.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1U9t1S-0000il-Jr for caml-list@inria.fr; Mon, 25 Feb 2013 03:02:54 -0500 Received: by mail-ve0-f199.google.com with SMTP id m1so4977981ves.6 for ; Mon, 25 Feb 2013 00:02:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=hO2334I+lvq1EigneGvDnZd9Oxo9OlMmD8MbYySSuac=; b=mdmFImkSqaZbgjsaHV7Yzn2FxLxBJOA3BQZqPFXmhqs8bhoXqOEboFj1CTszewUhAZ QHDJT1g031X9SHVXuy84vL6F3Pb5eED6azXNXdmbxF/95vBRwpH0DM+RajCvik1UVbwj /kZXxeYkhbHDckjgpPbzXNnku4KA0oy21J8mI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=hO2334I+lvq1EigneGvDnZd9Oxo9OlMmD8MbYySSuac=; b=XK376yVVAhdrbtkDE/CuXdw0hdi7AWU2Z5vouOBZCtuzd3wVIVE3YMSD2/QFay0FO8 MlgfRSp8GYu9dmtqqkyGMooZEX8i2CSfHES/Z+sHSKRWKZ19KlYhtMpBmx+hke21v6Du 4abMibGNNijMIUMcD4SpmvpWzui1peFQaEBpavWjnr87OW8GfOf7r3hDzl80xUDHOofY 27rHErWZbmZWKec1/bDKMOS0iMUdAvupsPhNrqOEQTmdB600v2pv/99xPWEoF3xRB79D yfXq0CPCdBPEzni0+5PTJXzEJ5s2Qe/n5eTFXwAOOHyMGnA6VUx945lXQDkbKIyIgg0C C1GQ== X-Received: by 10.58.144.133 with SMTP id sm5mr5554495veb.23.1361779374445; Mon, 25 Feb 2013 00:02:54 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.58.144.133 with SMTP id sm5mr5554494veb.23.1361779374385; Mon, 25 Feb 2013 00:02:54 -0800 (PST) Received: by 10.58.244.164 with HTTP; Mon, 25 Feb 2013 00:02:54 -0800 (PST) In-Reply-To: <512AC78E.7070908@riken.jp> References: <512AC78E.7070908@riken.jp> Date: Mon, 25 Feb 2013 08:02:54 +0000 Message-ID: From: Mark Shinwell To: Francois Berenger Cc: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnxAmKbm6H44fS0F/cJSkdhDqV6vAgFML4K1w/DZ/+nJq5GUf4dvQAB8PdSVZinRa2A4IiVaJnVl13PrLw8RieyvXZhxtivkPxWlI6X2L4A14VqbJW3Sb+jpBI0FMiC2TexNbUHZEjY7Vwk0rCC6NsAgAjKLQ== X-Validation-by: mshinwell@janestreet.com Subject: Re: [Caml-list] What is triggering a lot of GC work? On 25 February 2013 02:08, Francois Berenger wrote: > Is there a way to profile a program in order > to know which places in the source code > trigger a lot of garbage collection work? Well, as of last week, there is! I'm working on a compiler and runtime patch which allows the identification, without excessive overhead, of every location (source file name / line number) which causes a minor or major heap allocation together with the number of words allocated at that point. There should be something available within the next couple of weeks. It only works on native code compiled for x86-64 machines at present. Currently it has only been tested on Linux---although I expect it to work on other Unix-like platforms with little or no modification. Mark