From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA29295 for caml-redistribution; Wed, 25 Jun 1997 14:49:26 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA19885 for ; Wed, 25 Jun 1997 03:38:39 +0200 (MET DST) Received: from vegemite.Stanford.EDU (vegemite.Stanford.EDU [171.65.76.158]) by concorde.inria.fr (8.8.5/8.7.3) with ESMTP id DAA14620 for ; Wed, 25 Jun 1997 03:38:38 +0200 (MET DST) Received: (arc@localhost) by vegemite.Stanford.EDU (8.7.1/8.6.4) id SAA18764 for caml-list@pauillac.inria.fr; Tue, 24 Jun 1997 18:38:36 -0700 (PDT) Date: Tue, 24 Jun 1997 18:38:36 -0700 (PDT) From: Andrew Conway Message-Id: <199706250138.SAA18764@vegemite.Stanford.EDU> To: caml-list@pauillac.inria.fr Subject: Time profiling Sender: weis [ Mauvais franc,ais au fin ] Dear O'Caml-group, I tried doing a time profile of a program in ocaml 1.05, and got for the first few lines: %time seconds cum % cum sec procedure (file) 28.5 11.8369 28.5 11.84 proc_at_0x120091f50 () 18.5 7.6943 47.1 19.53 proc_at_0x1200922b0 () 15.6 6.4551 62.6 25.99 proc_at_0x12008a5d0 () 10.7 4.4219 73.3 30.41 proc_at_0x12008c220 () 6.3 2.6064 79.6 33.01 List_mem_143 () 5.5 2.2637 85.0 35.28 equal () 2.9 1.2031 87.9 36.48 Matrix_transpose_65 () 2.2 0.9023 90.1 37.38 fl_merge_block () Now, what does proc_at_0x120091f50 mean? Also, with object methods, the time profile is rather unuseful...the names seem to not contain an easy way of finding the function in question. I finally worked it out by compiling to source code, and reverse engineering that, which is very time consuming. This was in 1.02; I haven't tried it recently. Thanks, Andrew. ----------------------- Cher groupe de ocaml, J'ai essaye' d'utiliser "prof" avec caml 1.05, et j'ai obtenu %time seconds cum % cum sec procedure (file) 28.5 11.8369 28.5 11.84 proc_at_0x120091f50 () 18.5 7.6943 47.1 19.53 proc_at_0x1200922b0 () 15.6 6.4551 62.6 25.99 proc_at_0x12008a5d0 () 10.7 4.4219 73.3 30.41 proc_at_0x12008c220 () 6.3 2.6064 79.6 33.01 List_mem_143 () 5.5 2.2637 85.0 35.28 equal () 2.9 1.2031 87.9 36.48 Matrix_transpose_65 () 2.2 0.9023 90.1 37.38 fl_merge_block () ... Que veut dire proc_at_0x120091f50? Aussi, j'ai eu des proble`mes avec des methods en ocaml. Les noms (en prof) ne contient pas les noms (en ocaml). C'etait en utilisant ocaml 1.02 Merci, Andrew. ,