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
Determining memory usage?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Remi Vanicat <remi.vanicat@g...>
Subject: Re: [Caml-list] Determining memory usage?
On Sun, 13 Feb 2005 13:29:39 +1100, Erik de Castro Lopo
<> wrote:
> Hi all,
> I was wondering if there was a way of finding the maximum memory
> usage of a program compiled with ocamlopt. Preferably I'd like
> to print that memory usage out at the end of a run of my program.

Then you have to look to the Gc module of the stdlib, in particular
the Gc.stat function