From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 18E4EBC48 for ; Mon, 14 Mar 2005 20:24:15 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2EJOEk1009447 for ; Mon, 14 Mar 2005 20:24:14 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA14231 for ; Mon, 14 Mar 2005 20:24:14 +0100 (MET) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2EJODKL011211 for ; Mon, 14 Mar 2005 20:24:13 +0100 Received: by wproxy.gmail.com with SMTP id 69so1506927wri for ; Mon, 14 Mar 2005 11:24:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=OfRsURhiAwOt/FrdcB+3MuVXZfBXmpv1s8wMucpNq/+t+MhN6FUChcyDuhSErAg4SlKgzsfuJs33tezBEuq1VMVWL6Xhy3J6wcxNBI/wV++TjRaN8UT0cq8SHS3ZjutRT+DjDRwNNltl+SODgXtPxCcLUOB9eLLCE4w6qJqx328= Received: by 10.54.4.30 with SMTP id 30mr3024442wrd; Mon, 14 Mar 2005 11:24:13 -0800 (PST) Received: by 10.54.2.79 with HTTP; Mon, 14 Mar 2005 11:24:13 -0800 (PST) Message-ID: <891bd339050314112441aaf1e4@mail.gmail.com> Date: Mon, 14 Mar 2005 14:24:13 -0500 From: Yaron Minsky Reply-To: yminsky@cs.cornell.edu To: Caml Mailing List Subject: oprofile and ocaml call graphs Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4235E4DE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4235E4DD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; yaron:01 minsky:01 yminsky:01 ocaml:01 ocaml:01 yaron:01 instrument:98 binaries:01 seems:03 gprof:03 overhead:03 preferable:05 nicely:07 seem:07 analysis:08 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: Has anyone managed to use oprofile with ocaml effectively? I've been playing with it lately, and it works fine except that oprofile doesn't seem to understand ocaml call graphs, and so can't tell you things like, how much time was spent in a given function and its children. Has anyone had some luck with this? It would be nice to get oprofile and ocaml to play nicely, since oprofile seems significantly preferable to gprof, for a variety of reasons (lower overhead, no need to instrument binaries, whole system analysis, etc.) Yaron