caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Kaspar Rohrer <kaspar.rohrer@gmail.com>
To: Richard Jones <rich@annexia.org>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Inspect and dump values on the OCaml heap
Date: Thu, 15 Apr 2010 01:23:09 +0200	[thread overview]
Message-ID: <C98276FE-7E65-4B3F-99E2-106936891865@gmail.com> (raw)
In-Reply-To: <20100414224529.GA24089@annexia.org>

On Apr 15, 2010, at 12:45 AM, Richard Jones wrote:
> Graphviz output is interesting, but I would add that such a thing
> exists as the 'Std.dump' function in extlib.

The last time I've checked, Std.dump had several shortcomings. It did not handle cycles in the object graph that well (that's probably an understatement, it did not print much information about some value types (e.g. custom, closure).
I tried to remedy that in my library. I also do not try to interpret the values (e.g. lists are printed as either 0 or (BL0#2 hd tl) ). The library simply dumps the object graph, with references or links where appropriate or needed.

I will go into more detail if anybody is interested, but right now I just want to get the code out there.

In the meantime, there are two sample pictures of graphviz dumps on my personal blog: http://lambdamuesli.blogspot.com/ (I apologize for the shameless plug)


  reply	other threads:[~2010-04-14 23:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-14 15:02 Kaspar Rohrer
2010-04-14 22:45 ` [Caml-list] " Richard Jones
2010-04-14 23:23   ` Kaspar Rohrer [this message]
2010-04-15  0:40     ` Martin Jambon
2010-04-15  5:19     ` rixed
2010-04-15  2:09 ` Kaustuv Chaudhuri
2010-04-15  5:31   ` rixed
2010-04-15  5:42   ` Martin Jambon

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=C98276FE-7E65-4B3F-99E2-106936891865@gmail.com \
    --to=kaspar.rohrer@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=rich@annexia.org \
    /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).