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=1.4 required=5.0 tests=SPF_NEUTRAL 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 63CC5BC68 for ; Sun, 12 Nov 2006 10:15:40 +0100 (CET) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kAC9FdA3021100 for ; Sun, 12 Nov 2006 10:15:40 +0100 Received: by nf-out-0910.google.com with SMTP id m19so1575030nfc for ; Sun, 12 Nov 2006 01:15:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=clGfE/rOWDxUBeJgVclEXgDeDi4jd1JW0VcJIoHspF5/SHe/19gKAnO4xHniOXxC/YSvt7MURoOQPYkDZEG2FdYhOKRtpT0U0AG+GRzpYQwagPBUlwaBkXHmHslspmWcyCoCKmzcZbGf3E4hKd1pe0AaqEcItp8iKV0BPjkuN3k= Received: by 10.78.50.5 with SMTP id x5mr4829183hux.1163322939380; Sun, 12 Nov 2006 01:15:39 -0800 (PST) Received: by 10.78.119.3 with HTTP; Sun, 12 Nov 2006 01:15:39 -0800 (PST) Message-ID: <700d600f0611120115v77c2b9ebh76b94791fb24a05b@mail.gmail.com> Date: Sun, 12 Nov 2006 11:15:39 +0200 From: "Janne Hellsten" To: caml-list@inria.fr Subject: Specifying ocamlprof.dump output filename MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-j-chkmail-Score: MSGID : 4556E63B.001 on discorde : j-chkmail score : X : 0/20 1 X-Miltered: at discorde with ID 4556E63B.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamlprof:01 ocamlprof:01 ocaml:01 bytecode:01 ocamlcp:01 slight:01 func:01 func:01 bin:01 bin:01 output:02 output:02 override:03 solved:04 usability:04 Hi all, I have come across a slight usability issue with the use of the ocamlprof utility. The problem is the accumulation of results when my profilee program is executed several times in several different working directories. My OCaml program is a command line tool that gets tested by my regression test suite. The regression test calls my command line tool from several different locations, e.g. $PROJ/test/size $PROJ/test/speed $PROJ/test/func As my profilee gets executed from these separate directories (size, speed, func), the "ocamlprof.dump" files also end up in these different directories. This is problematic for the following reasons: 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 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. This problem could be solved by being able to specify where the ocamlprof.dump files get generated. If I could do this, I would simply generate ocamlprof.dump files in the bin directory of my tested program. Would it make sense to add a command line option for ocamlcp that would override the default ocamlprof.dump output path? Thanks, Janne P.S. I have workarounded this problem temporarily by always switching my working dir when running my tool.