From: Jon Harrop <jon@jdh30.plus.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Determining memory usage?
Date: Mon, 14 Feb 2005 02:20:50 +0000 [thread overview]
Message-ID: <200502140220.51095.jon@jdh30.plus.com> (raw)
In-Reply-To: <20050214124650.69921c71.ocaml-erikd@mega-nerd.com>
On Monday 14 February 2005 01:46, Erik de Castro Lopo wrote:
> Remi Vanicat <remi.vanicat@gmail.com> 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?
You'll be wanting Sys.word_size:
"Size of one word on the machine currently executing the Caml program, in
bits: 32 or 64."
:-)
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
prev parent reply other threads:[~2005-02-14 2:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-13 2:29 Erik de Castro Lopo
2005-02-13 8:31 ` [Caml-list] " Remi Vanicat
2005-02-14 1:46 ` Erik de Castro Lopo
2005-02-14 2:05 ` William Lovas
2005-02-14 7:03 ` Erik de Castro Lopo
2005-02-16 15:06 ` Damien Doligez
2005-02-14 2:09 ` William D.Neumann
2005-02-14 2:20 ` Jon Harrop [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200502140220.51095.jon@jdh30.plus.com \
--to=jon@jdh30.plus.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox