From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr 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 D72B2BC0A for ; Wed, 6 Dec 2006 09:53:57 +0100 (CET) Received: from mail22.bluewin.ch (mail22.bluewin.ch [195.186.19.66]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id kB68rtVk032225 for ; Wed, 6 Dec 2006 09:53:57 +0100 Received: from [10.0.1.2] (83.79.39.98) by mail22.bluewin.ch (Bluewin 7.3.118) id 4513CD4901157CB7; Wed, 6 Dec 2006 08:53:53 +0000 In-Reply-To: <4C40AFBA-AE30-4C22-B2A5-170FDA130B64@lrde.epita.fr> References: <4C40AFBA-AE30-4C22-B2A5-170FDA130B64@lrde.epita.fr> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <613020E3-8A60-4FA9-975E-F2AD5E0E28DB@epfl.ch> Cc: caml-list@inria.fr Content-Transfer-Encoding: 7bit From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= Subject: Re: [Caml-list] time profiling and nested function inlining Date: Wed, 6 Dec 2006 09:55:16 +0100 To: =?ISO-8859-1?Q?Qu=F4c_Peyrot?= X-Mailer: Apple Mail (2.752.2) X-Miltered: at concorde with ID 45768523.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bunzli:01 buenzli:01 inlining:01 invoke:01 macosx:01 compile:01 caml-list:01 epfl:02 executable:03 executable:03 nested:04 daniel:04 daniel:04 profiling:04 opt:05 If you have the development tools installed, you can profile on macosx using shark (you don't even need to compile with -p). Invoke it from the command line on your executable as follows: > shark -i -1 -q ./yourexec.opt args This will write a .mshark file in the directory that you can open with Shark.app. > open *.mshark Best, Daniel P.S. I remember having problems if the executable did not run for long enough, shark couldn't take any samples.