Browse thread
[Caml-list] heap profiling
[
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@t...> |
| Subject: | Re: [Caml-list] heap profiling |
> Regarding the last point (the amount of data used by some ocaml > values(s)), I implemented a small module Size for this purpose. It is > available at http://www.lri.fr/~filliatr/software.en.html The problem is that your Size module does not indicate which part of the size retained by a root is maybe retained by other roots. By the way, since garbage collections might occur during the execution of your module, and objects moved in memory, some objects can be counted twice by your function (only if they were in the minor heap or if there is a compaction), leading to a small inaccuracy. You should probably finish the major collection, and prevent compaction during its execution. - Fabrice ------------------- 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