English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Ocaml 3.07 memory profiling
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-24 (11:58)
From: Fabrice Le Fessant <lefessan@l...>
Subject: [Caml-list] Ocaml 3.07 memory profiling


  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...


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