From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 05BF4BC57 for ; Thu, 16 Dec 2010 01:42:02 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At4AAG7vCE3RVdg0kGdsb2JhbACDZKBHCBUBAQEBCQkMBxEEIKdciTQ8ghiFKy6IVwEBAwWBHIM1dASKew X-IronPort-AV: E=Sophos;i="4.59,351,1288566000"; d="scan'208";a="92472708" Received: from mail-qw0-f52.google.com ([209.85.216.52]) by mail1-smtp-roc.national.inria.fr with ESMTP; 16 Dec 2010 01:42:01 +0100 Received: by qwi4 with SMTP id 4so2561100qwi.39 for ; Wed, 15 Dec 2010 16:42:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=URSsFDwKvXNplSkvsJOsOEicwpPH0h79xSdgogD14hs=; b=E5bko0Q8xzhG8wRWcsGSeBZND806qBDSjNJM4o1clHhkduZ1OX8LYCjRcLFv1XmnDf jX+ChDeWrEy2zR2rxncLdrgH0QeM3AI6sqTXwVtyacEF2DWhl3rZ3ZTsach7oN+T/3hs v9dT3ctkT7L1cqKlR3X9ls3WFSveuP0scCBmY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=ebsfrGbA0XGvuTeut7wnNGpeI3AKrdHGr1Cy862DeU8zPx4QOEPIXxT4+R2KDLfLFK 9Rs/PVWgVDj5Pswe2rJY+aV7CjABYwo7fupamTqhP48L5LsPHlPKk7g0+/9zFwVmfV8c 0t8Kcd93sAOqEoPjdOT4kQ7c/cLjY6MrjhBDs= Received: by 10.229.82.10 with SMTP id z10mr1055309qck.83.1292460120806; Wed, 15 Dec 2010 16:42:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.233.9 with HTTP; Wed, 15 Dec 2010 16:41:40 -0800 (PST) In-Reply-To: <20101215234335.GA3647@annexia.org> References: <20101215234335.GA3647@annexia.org> From: Jesper Louis Andersen Date: Thu, 16 Dec 2010 01:41:40 +0100 Message-ID: Subject: Re: [Caml-list] question about gc To: "Richard W.M. Jones" Cc: Nicolas Ojeda Bar , caml-list@yquem.inria.fr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; usr:01 andersen:98 andersen:98 wrote:01 wrote:01 caml-list:01 tree:02 kernel:02 gprof:03 tend:03 compiled:04 profiling:04 thu:05 dec:05 dec:05 On Thu, Dec 16, 2010 at 00:43, Richard W.M. Jones wrote: > On Wed, Dec 15, 2010 at 04:15:34PM -0500, Nicolas Ojeda Bar wrote: >> Is there a way to tell how much time has been spent in >> the gc at a particular point in time from inside your >> compiled code? > > Yes, use standard profiling tools. =C2=A0gprof will give you some idea, b= ut > oprofile is much more accurate. Is 'perf' from the linux kernel source tree, /usr/src/linux/tools/perf i believe, useful here? I tend to find it more useful and simpler than oprofile - but I am not sure you can find the gc-entry point. --=20 J.