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
Inspect and dump values on the OCaml heap
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-04-14 (22:45)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Inspect and dump values on the OCaml heap
On Wed, Apr 14, 2010 at 05:02:30PM +0200, Kaspar Rohrer wrote:
> Hello everybody
> I've written a little library to inspect and dump values on the OCaml heap, as S-expressions or in the Graphiz dot-format.
> It's as simple as
> open Inspect
> dump ();;
> dump 3;;
> dump (1,2);;
> dump (test_data ();
> dot (test_data ());
> If anybody is interested, I will put up the code somewhere. Any opinions on a good place to post it? I'm using git, so I'm thinking maybe git-hub?

Graphviz output is interesting, but I would add that such a thing
exists as the 'Std.dump' function in extlib.


Richard Jones
Red Hat