From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id EF2CBBC57 for ; Thu, 15 Apr 2010 00:45:31 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgEFABnixUtQRFuwWWdsb2JhbACbWgsBFBcENr1ZhQ0E X-IronPort-AV: E=Sophos;i="4.52,207,1270418400"; d="scan'208";a="48915569" Received: from furbychan.cocan.org ([80.68.91.176]) by mail2-smtp-roc.national.inria.fr with ESMTP; 15 Apr 2010 00:45:31 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1O2BKr-0006H7-Lu; Wed, 14 Apr 2010 23:45:29 +0100 Date: Wed, 14 Apr 2010 23:45:29 +0100 To: Kaspar Rohrer Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Inspect and dump values on the OCaml heap Message-ID: <20100414224529.GA24089@annexia.org> References: <3FB04EDC-37F4-4336-A435-13ACF038051D@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FB04EDC-37F4-4336-A435-13ACF038051D@gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; ocaml:01 0200,:01 ocaml:01 graphviz:01 git:98 wrote:01 heap:01 heap:01 caml-list:01 data:02 data:02 output:02 library:03 exists:05 dump:06 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. Rich. -- Richard Jones Red Hat