From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA26636; Sat, 24 Apr 2004 13:58:39 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 NAA26438 for ; Sat, 24 Apr 2004 13:58:38 +0200 (MET DST) Received: from mx-a.polytechnique.fr (mx-a.polytechnique.fr [129.104.30.14]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3OBwcYM021792 for ; Sat, 24 Apr 2004 13:58:38 +0200 Received: from lix.polytechnique.fr (lix.polytechnique.fr [129.104.11.2]) by mx-a.polytechnique.fr (x.y.z/x.y.z/tbp v1.0) with ESMTP id i3OBoHQI027587 for ; Sat, 24 Apr 2004 13:50:17 +0200 Received: from lix.polytechnique.fr (localhost.localdomain [127.0.0.1]) by lix.polytechnique.fr (8.12.8/8.12.8) with ESMTP id i3OBwbMl006174 for ; Sat, 24 Apr 2004 13:58:37 +0200 Received: (from lefessan@localhost) by lix.polytechnique.fr (8.12.8/8.12.8/Submit) id i3OBwalf006172 for caml-list@inria.fr; Sat, 24 Apr 2004 13:58:36 +0200 Date: Sat, 24 Apr 2004 13:58:36 +0200 From: Fabrice Le Fessant Message-Id: <200404241158.i3OBwalf006172@lix.polytechnique.fr> To: caml-list@inria.fr Subject: [Caml-list] Ocaml 3.07 memory profiling X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; 3.07:01 3.07:01 -days:99 bug:01 ocaml:01 ocaml:01 recompile:01 recompile:01 ocaml-:01 dump:01 dump:01 tar:01 patch:02 patch:02 heap:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I've written a small patch to Ocaml-3.07 to do some memory profiling on running programs. The patch requires to recompile and install Ocaml, and to recompile your program with it. It doesn't cost anything during the execution of the program, it just requires a call to "Gc.dump_heap" at some point to dump an image of the memory on disk that will be used by the analyser, that will display the memory retained (per root) and used (per type of data), at least when it can identify them. It's just a 3-days work, thus it needs still to be improved a lot, but I could find the bug I was looking for thanks to it, so I think it is worth a first beta release... http://pauillac.inria.fr/~lefessan/src/memprof-ocaml-3.07.tar.gz Best regards, - Fabrice Le Fessant Comete, INRIA-Futurs and Ecole Polytechnique ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners