Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-07-09 (15:03)
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

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 Archives:
Bug reports: FAQ:
Beginner's list: