English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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