From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 19697BC8B for ; Sun, 13 Feb 2005 03:29:47 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j1D2TkHe016095 for ; Sun, 13 Feb 2005 03:29:46 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA06895 for ; Sun, 13 Feb 2005 03:29:46 +0100 (MET) Received: from smtp2.syd.swiftdsl.com.au (smtp2.syd.swiftdsl.com.au [218.214.225.98]) by nez-perce.inria.fr (8.13.0/8.13.0) with SMTP id j1D2Thsf016086 for ; Sun, 13 Feb 2005 03:29:45 +0100 Received: (qmail 7555 invoked from network); 13 Feb 2005 02:29:48 -0000 Received: from unknown (HELO smtp.syd.swiftdsl.com.au) (218.214.224.138) by smtp2.syd.swiftdsl.com.au with SMTP; 13 Feb 2005 02:29:48 -0000 Received: (qmail 10879 invoked from network); 13 Feb 2005 02:29:48 -0000 Received: from unknown (HELO coltrane.mega-nerd.net) (218.214.64.136) by smtp.syd.swiftdsl.com.au with SMTP; 13 Feb 2005 02:29:48 -0000 Received: from coltrane (localhost [127.0.0.1]) by coltrane.mega-nerd.net (Postfix) with SMTP id CCD417ADA for ; Sun, 13 Feb 2005 13:29:39 +1100 (EST) Date: Sun, 13 Feb 2005 13:29:39 +1100 From: Erik de Castro Lopo To: caml-list@inria.fr Subject: Determining memory usage? Message-Id: <20050213132939.03ea86d1.ocaml-erikd@mega-nerd.com> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed version 1.0.0 (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 420EBB9A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 420EBB97.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamlopt:01 nospam:98 erik:04 erik:04 compiled:04 i'd:05 tia:06 memory:08 memory:08 wondering:08 confusion:10 think:10 neither:11 end:12 print:14 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.2 X-Spam-Level: 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. TIA, Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ The main confusion about C++ is that its practitioners think it is simultaneously a high and low level language when in reality it is good at neither.