Version française
Home     About     Download     Resources     Contact us    
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: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] Determining memory usage?
On Feb 14, 2005, at 08:03, Erik de Castro Lopo wrote:

> For the archive, I now have:
>
>    let x = Gc.stat () in
>    printf "Memory used : %d kb\n\n" (x.heap_words / (1024 / 
> (Sys.word_size / 8))) ;;

I think you'll want to use top_heap_words instead of heap_words.

-- Damien