From: Fabrice Le Fessant <lefessan@tyminouch.dyndns.org>
To: Jean-Christophe.Filliatre@lri.fr (Jean-Christophe Filliatre)
Cc: Fabrice Le Fessant <lefessan@tyminouch.dyndns.org>, caml-list@inria.fr
Subject: Re: [Caml-list] heap profiling
Date: Wed, 9 Jul 2003 16:59:33 +0200 [thread overview]
Message-ID: <16140.11733.866698.152410@tyminouch.dyndns.org> (raw)
In-Reply-To: <16140.2991.654824.906248@gargle.gargle.HOWL>
> 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
next prev parent reply other threads:[~2003-07-09 15:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-09 10:10 Fabrice Le Fessant
2003-07-09 12:33 ` Jean-Christophe Filliatre
2003-07-09 14:59 ` Fabrice Le Fessant [this message]
[not found] ` <lefessan@tyminouch.dyndns.org>
2003-07-09 15:03 ` Norman Ramsey
2003-07-09 20:52 ` Christian Lindig
2003-07-10 8:02 ` [Caml-list] expose GC roots as weak Obj.t pointers? Christian Lindig
2003-07-18 13:30 ` Damien Doligez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16140.11733.866698.152410@tyminouch.dyndns.org \
--to=lefessan@tyminouch.dyndns.org \
--cc=Jean-Christophe.Filliatre@lri.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox