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-13 (08:31)
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
<ocaml-erikd@mega-nerd.com> 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