[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Fabrice Le Fessant <lefessan@l...> |
| Subject: | [Caml-list] Ocaml 3.07 memory profiling |
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