From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id C2022BC37 for ; Mon, 1 Mar 2010 01:16:36 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkUBAIaWiktKfVM2mGdsb2JhbACRLYITh1UIFQEBAQEBCAkMBxMiqWiBXIQELYhKAQEDBYR2BIMX X-IronPort-AV: E=Sophos;i="4.49,557,1262559600"; d="scan'208";a="45646369" Received: from mail-gw0-f54.google.com ([74.125.83.54]) by mail2-smtp-roc.national.inria.fr with ESMTP; 01 Mar 2010 01:16:36 +0100 Received: by gwaa20 with SMTP id a20so1102983gwa.27 for ; Sun, 28 Feb 2010 16:16:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=qeMwmSSiJr83tdn8TveMvpfFBpL67A9fcE+opiCzTqI=; b=T3XMzerD0Zl0W1lN8KC00vcbunuCdqGSaIl1UMUJu9FC/Um5R/xfETI2lU8rOIRLWH 2pPRDbi8By6GRwjnIVsOo1AA2uGQBoz9mGNfTj1ul/vvpwXGNejIwirGnOd/4qpsbS31 nGT6hkVOkBsZ7oQdc1onFD6y9KxeT4lC4TPDg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=LMNFzlLtwAwnOwizQFNJ3SKdncCXinsz5mJvHeYnLgPAAcLUbRkp056vC+nFk4HChl SZCZdjhBl4C05ergYLBwQ5ez/+59AVsTqc8650bdJpoAwVORRwABdvAesO5iI3WKCUuh njKbxQD8njv8Ppc2jr6gWIVEwvkae/w6egu2Q= Received: by 10.101.135.10 with SMTP id m10mr1283478ann.26.1267402595318; Sun, 28 Feb 2010 16:16:35 -0800 (PST) Received: from ?192.168.0.34? (c-24-5-88-93.hsd1.ca.comcast.net [24.5.88.93]) by mx.google.com with ESMTPS id 5sm892756yxg.28.2010.02.28.16.16.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Feb 2010 16:16:34 -0800 (PST) Message-Id: <37150F07-8902-464A-9A0E-44A0C424C87B@gmail.com> From: Warren Harris To: OCaml Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: gc overhead Date: Sun, 28 Feb 2010 16:16:03 -0800 X-Mailer: Apple Mail (2.936) X-Spam: no; 0.00; warren:98 warren:98 garbage:01 short:01 gprof:03 overhead:04 overhead:04 perhaps:05 stat:07 seem:08 collector:12 exist:13 but:14 but:14 using:15 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. Warren