Version française
Home     About     Download     Resources     Contact us    
Browse thread
debugging memory leaks
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris Waterson <waterson@m...>
Subject: Re: [Caml-list] debugging memory leaks
On Nov 11, 2007, at 11:53 PM, Pierre Etchemaïté wrote:

> Le Sun, 11 Nov 2007 21:56:06 -0800, Chris Waterson  
> <waterson@maubi.net> a écrit :
>
>> I have a fairly substantial OCaml application that leaks memory.
>> What tools or techniques do people use to track down memory leaks?
>> Minimally, is there a way to enumerate the live objects in the heap?
>
> There's ocaml-memprof, a compiler patch that adds memory profiling
> features to ocaml programs;
>
> Latest update of the patch itself, as far as I know:
> http://www.pps.jussieu.fr/~smimram/docs/ocaml-3.09.3-memprof.patch
>
> Readme:
> http://www.pps.jussieu.fr/~smimram/docs/README.memprof

Wow.  This is fantastic!

I had to hack the patch a bit since I'm using objects in a handful of  
places, but this is exactly what I needed.

Thanks a ton!

chris