English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2005-02-14 (02:05)
From: William Lovas <wlovas@s...>
Subject: Re: [Caml-list] Determining memory usage?
On Mon, Feb 14, 2005 at 12:46:50PM +1100, Erik de Castro Lopo wrote:
> 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?

How about the strikingly appropriately named Sys.word_size? :)