<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/07/35a2b34e4d401f2ef1c37c78601a6b4a"
  from="Fabrice Le Fessant &lt;lefessan@t...&gt;"
  author="Fabrice Le Fessant"
  date="2003-07-09T15:03:23"
  subject="Re: [Caml-list] heap profiling"
  prev="2003/07/cf9f031cb8fe2aa58a960ccbe332159c"
  next="2003/07/b6c0eb092a38cd21aca4d7db57149ede"
  prev-in-thread="2003/07/cf9f031cb8fe2aa58a960ccbe332159c"
  next-in-thread="2003/07/b6c0eb092a38cd21aca4d7db57149ede"
  prev-thread="2003/07/6ff247057e1f23c1558a197c6adcfe70"
  next-thread="2003/07/2a69eacc58f525bdc223410c31d18e6a"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] heap profiling">
<msg 
  url="2003/07/fb3da633abcfdc3f4bbdc870d13140cb"
  from="Fabrice Le Fessant &lt;lefessan@t...&gt;"
  author="Fabrice Le Fessant"
  date="2003-07-09T10:14:41"
  subject="[Caml-list] heap profiling">
<msg 
  url="2003/07/cf9f031cb8fe2aa58a960ccbe332159c"
  from="Jean-Christophe Filliatre &lt;Jean-Christophe.Filliatre@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2003-07-09T12:41:21"
  subject="Re: [Caml-list] heap profiling">
<msg 
  url="2003/07/35a2b34e4d401f2ef1c37c78601a6b4a"
  from="Fabrice Le Fessant &lt;lefessan@t...&gt;"
  author="Fabrice Le Fessant"
  date="2003-07-09T15:03:23"
  subject="Re: [Caml-list] heap profiling">
</msg>
</msg>
<msg 
  url="2003/07/b6c0eb092a38cd21aca4d7db57149ede"
  from="Norman Ramsey &lt;nr@e...&gt;"
  author="Norman Ramsey"
  date="2003-07-09T15:03:17"
  subject="Re: [Caml-list] heap profiling ">
</msg>
<msg 
  url="2003/07/02dc6d863fe3c0c547c14388c92e7bde"
  from="Christian Lindig &lt;lindig@e...&gt;"
  author="Christian Lindig"
  date="2003-07-10T06:52:40"
  subject="Re: [Caml-list] heap profiling">
</msg>
<msg 
  url="2003/07/fa560885a8e97b6dcf3961a0bd577aea"
  from="Christian Lindig &lt;lindig@e...&gt;"
  author="Christian Lindig"
  date="2003-07-10T08:04:16"
  subject="[Caml-list] expose GC roots as weak Obj.t pointers?">
<msg 
  url="2003/07/e9a447a146061fa5e4c4b9df266843c0"
  from="Damien Doligez &lt;Damien.Doligez@i...&gt;"
  author="Damien Doligez"
  date="2003-07-18T13:30:54"
  subject="Re: [Caml-list] expose GC roots as weak Obj.t pointers?">
</msg>
</msg>
</msg>
</thread>

<contents>

&gt;  Regarding  the last  point  (the amount  of  data used  by some  ocaml
&gt;  values(s)), I implemented a small  module Size for this purpose. It is
&gt;  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

</contents>

</message>

