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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 2D07D7F30A for ; Mon, 25 Feb 2013 11:32:29 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of ygrekheretix@gmail.com) identity=pra; client-ip=209.85.160.51; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="ygrekheretix@gmail.com"; x-sender="ygrekheretix@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of ygrekheretix@gmail.com designates 209.85.160.51 as permitted sender) identity=mailfrom; client-ip=209.85.160.51; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="ygrekheretix@gmail.com"; x-sender="ygrekheretix@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-pb0-f51.google.com) identity=helo; client-ip=209.85.160.51; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="ygrekheretix@gmail.com"; x-sender="postmaster@mail-pb0-f51.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0BAPg7K1HRVaAzk2dsb2JhbABFwVOBBBYOAQEBAQkJCwkUBCOCHwEBBAE6BgEbHgMBCwYFCw0cEiMRAQUBHBmIAAEDCQUBDKBXjDKCe4QOChknDVmIRgEFDI8JFoMqA4hnhUiETYNAAYEdjWY/hDc X-IPAS-Result: Av0BAPg7K1HRVaAzk2dsb2JhbABFwVOBBBYOAQEBAQkJCwkUBCOCHwEBBAE6BgEbHgMBCwYFCw0cEiMRAQUBHBmIAAEDCQUBDKBXjDKCe4QOChknDVmIRgEFDI8JFoMqA4hnhUiETYNAAYEdjWY/hDc X-IronPort-AV: E=Sophos;i="4.84,733,1355094000"; d="scan'208";a="3352887" Received: from mail-pb0-f51.google.com ([209.85.160.51]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 25 Feb 2013 11:32:28 +0100 Received: by mail-pb0-f51.google.com with SMTP id un15so1601961pbc.10 for ; Mon, 25 Feb 2013 02:32:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=8sCBWHq7UiVlKEAE3Y6XiDgPflkJuRiH+W/+Bt4lSJg=; b=C+UiXFrpzcfHIRzmbsRZu/MUg6vl1NXznO5fl1n4mI8kuhcpgEzXQTxu6LW+UACU7w cfifZCPQcgsdpLsICWttxslvjJJe5wihyIpHV8WXpz7dCVyeTJhi/vOUmQg6VJDouxi1 3PkGOsm+2WuFTV07lQTy38m3Ug8goU9JY2BvAuU9esCHYxNEX3mAL/izEwTYhDy4HgWj 1oFFqaN6UWclD98+PpomyFkFVwE3LxvqaM9u+PeiYg0Tds5FYIra9u3n+SmkN1AyGpfM ZEXYbk+NRgwqnjx52FF3dJkA1fY5/b2LgNtRrF0cOysU4Y8fVcRBg8aOFxrjFhGXg/zW 0bag== X-Received: by 10.66.163.166 with SMTP id yj6mr18120202pab.130.1361788346588; Mon, 25 Feb 2013 02:32:26 -0800 (PST) Received: from kiwi.local.tld ([49.245.134.64]) by mx.google.com with ESMTPS id 1sm12326840pbg.18.2013.02.25.02.32.24 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Feb 2013 02:32:25 -0800 (PST) Date: Mon, 25 Feb 2013 18:32:22 +0800 From: ygrek To: caml-list@inria.fr Message-Id: <20130225183222.8f7eda023079e8ddf31e3f5f@gmail.com> In-Reply-To: References: <512AC78E.7070908@riken.jp> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] What is triggering a lot of GC work? On Mon, 25 Feb 2013 08:02:54 +0000 Mark Shinwell wrote: > 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. Meanwhile you can use poor man's allocation profiler : - http://ygrek.org.ua/p/code/pmpa - https://sympa-roc.inria.fr/wws/arc/caml-list/2011-08/msg00050.html -- ygrek http://ygrek.org.ua