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 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 4CD8FBC0B for ; Tue, 28 Nov 2006 16:26:45 +0100 (CET) Received: from [193.55.250.121] (250-121.futurs.inria.fr [193.55.250.121] (may be forged)) (authenticated bits=0) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kASFQiBF032546 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 28 Nov 2006 16:26:45 +0100 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <700d600f0611120115v77c2b9ebh76b94791fb24a05b@mail.gmail.com> References: <700d600f0611120115v77c2b9ebh76b94791fb24a05b@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <090FAEF8-24FA-4144-A342-D35C73061322@inria.fr> Content-Transfer-Encoding: 7bit From: Damien Doligez Subject: Re: [Caml-list] Specifying ocamlprof.dump output filename Date: Tue, 28 Nov 2006 16:27:53 +0100 To: caml users X-Mailer: Apple Mail (2.752.2) X-Miltered: at discorde with ID 456C5534.003 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; damien:01 damien:01 ocamlprof:01 ocamlprof:01 bytecode:01 ocamlcp:01 doligez:01 doligez:01 wrote:01 caml-list:01 symbolic:01 func:01 bin:01 renaming:02 output:02 On 2006-11-12, at 10:15, Janne Hellsten wrote: > 1. Profiling results are not accumulated across all of the separate > testers. Each test directory produce a separate results file, and > I need to go through these results one by one. I'd like to only > get the combined results: > > $PROJ/test/size/ocamlprof.dump > $PROJ/test/speed/ocamlprof.dump > $PROJ/test/func/ocamlprof.dump > > => > > $PROJ/bin/ocamlprof.dump # combined result You can solve this one by setting up symbolic links before profiling your program. > 2. Running other bytecode programs compiled for profiling resets the > dump files. I run several OCamlprof-enabled programs in my > regression suite. As all of these are run in the same working > directory, these programs end up overwriting each others results. You can solve this one by copying or renaming the dump files between the runs of your programs. I agree this is inconvenient. > Would it make sense to add a command line option for ocamlcp that > would override the default ocamlprof.dump output path? Not really. What to do when two source files are compiled with different values for this option? What I will implement is an environment variable, to specify the name of the dump file used when profiling. Then you just have to set it before running your programs. -- Damien