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: Erik de Castro Lopo <ocaml-erikd@m...>
Subject: Re: [Caml-list] Determining memory usage?
On Sun, 13 Feb 2005 09:31:48 +0100
Remi Vanicat <> wrote:

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

Thanks Remi, the heap_words field of the stat record seems to be
what I want. However sicne that field is in words, I'm looking
for a way to figure out the word_size (4 vs 8 bytes) so I can
do a calculation that is correct on 32 and 64 but systems.

Any further clues?

  Erik de Castro Lopo (Yes it's valid)
"life is too long to know C++ well" -- Erik Naggum