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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 38C6ABC37 for ; Mon, 1 Mar 2010 09:54:32 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak0HADoPi0tQRFuwWWdsb2JhbACbEgsBFBcEOLlXhHsE X-IronPort-AV: E=Sophos;i="4.49,559,1262559600"; d="scan'208";a="57946446" Received: from furbychan.cocan.org ([80.68.91.176]) by mail4-smtp-sop.national.inria.fr with ESMTP; 01 Mar 2010 09:54:32 +0100 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1Nm1OY-0004Cl-2y; Mon, 01 Mar 2010 08:54:30 +0000 Date: Mon, 1 Mar 2010 08:54:30 +0000 To: Warren Harris Cc: OCaml Subject: Re: [Caml-list] gc overhead Message-ID: <20100301085430.GA16106@annexia.org> References: <37150F07-8902-464A-9A0E-44A0C424C87B@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37150F07-8902-464A-9A0E-44A0C424C87B@gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; userspace:01 userspace:01 ocaml:01 wiki:01 ocaml:01 28,:98 warren:98 garbage:01 wrote:01 caml-list:01 short:01 kernel:02 gprof:03 gprof:03 overhead:04 On Sun, Feb 28, 2010 at 04:16:03PM -0800, Warren Harris wrote: > I would like to determine what percentage of my application's cpu time > is spent in the garbage collector (for tuning purposes, but also just > to monitor the overhead). Is there any way to obtain this information > short of using gprof? Additional information provided by Gc.stat would > be ideal, or perhaps a Gc.alarm that was called at the beginning of > the gc cycle, but neither of these seem to exist. I would have to say what's wrong with using gprof? On a related topic: Has anyone tried using SystemTap with userspace DTrace-compatible probes to measure anything about total kernel + userspace usage of OCaml programs? ie, this sort of thing: http://sourceware.org/systemtap/wiki/AddingUserSpaceProbingToApps but with OCaml programs. Rich. -- Richard Jones Red Hat