caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: Caml-list List <caml-list@inria.fr>
Subject: Re: [Caml-list] Memory statistics tool
Date: Wed, 23 Jul 2008 13:47:34 +0200	[thread overview]
Message-ID: <896535EE-A2CF-4139-A9AE-BDFC3FED860F@erratique.ch> (raw)
In-Reply-To: <48870DD8.4050906@soton.ac.uk>


Le 23 juil. 08 à 12:54, Dr. Thomas Fischbacher a écrit :

> Is there already something like that? Has anyone already built such
> a tool?

Also had this wish the other day, I found objsize [1] but didn't use  
it -- did a rough approximation by traversing the datastructure. A  
generic implementation using only the Obj module and a lookup table to  
track visited nodes would be nice but I forgot too much about all the  
cases in the representation of caml values to implement it quickly and  
correctly.

Daniel

[1] http://caml.inria.fr/cgi-bin/hump.fr.cgi?contrib=614

  reply	other threads:[~2008-07-23 11:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23 10:54 Dr. Thomas Fischbacher
2008-07-23 11:47 ` Daniel Bünzli [this message]
2008-07-23 12:40   ` [Caml-list] " Jan Kybic
2008-07-23 12:44 ` dmitry grebeniuk
2008-07-23 13:09   ` Dr. Thomas Fischbacher
2008-07-23 13:16     ` Alain Frisch
2008-07-24 12:48       ` Dr. Thomas Fischbacher
2008-07-24 15:14         ` Alain Frisch
2008-07-24 15:44           ` Dr. Thomas Fischbacher
2008-07-24 16:12             ` Alain Frisch

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=896535EE-A2CF-4139-A9AE-BDFC3FED860F@erratique.ch \
    --to=daniel.buenzli@erratique.ch \
    --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;
as well as URLs for NNTP newsgroup(s).