From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p07EM1nu028370 for ; Fri, 7 Jan 2011 15:22:04 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoBAKOvJk3RVdo2mGdsb2JhbACDd6AoCBYBAgEICQwHESSkfIk8PIIVhG8uhXIBAQMFgRyDN3QEiwk X-IronPort-AV: E=Sophos;i="4.60,289,1291590000"; d="scan'208";a="86273032" Received: from mail-yi0-f54.google.com ([209.85.218.54]) by mail2-smtp-roc.national.inria.fr with ESMTP; 07 Jan 2011 15:22:04 +0100 Received: by yie19 with SMTP id 19so5151007yie.27 for ; Fri, 07 Jan 2011 06:22:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=hlh8u3mJRAghu4uSC1EV7/l1p8WibJrNv/840Yn6nfA=; b=GfUg1nOscvwsIqEp8ZoQPtWbyvwCj8kFt2tmbMzZxrTRwEWmRdvE2O0WqNMhvdZsaU GffpU2Mm0/pB8K628zczr8eDCToH8R74X43AnbnEREFkgk6qoN8kFLnJfrz4oB3Wy2/T wEgDbcX4Gp8S+TXQySlGQSqxMgE/Ibfp5tYBA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ao7ufNei9s9Qhfifm5j+2kbo+ze9wacyhUNtVcK2GpyvEgJXvYVlKLWnOhteat4rMk q2QZxWBb4ZDPxovUWqbI06MBUpPytDLxi08kztNtKq3NLw2ZV1sMwVt4J+8loSTxLbnD LD5QsxK2RhFmdoZN2Q+dM7dckMWQU1e9w9n9c= MIME-Version: 1.0 Received: by 10.151.40.16 with SMTP id s16mr680161ybj.15.1294410123600; Fri, 07 Jan 2011 06:22:03 -0800 (PST) Received: by 10.151.157.5 with HTTP; Fri, 7 Jan 2011 06:22:03 -0800 (PST) In-Reply-To: <20110107141426.GF12229@vaio.hsd1.pa.comcast.net> References: <1294326332.17561.3.camel@nyc-qws-062.delacy.com> <7577E373-EB25-4A7E-90C1-30491F27B4F9@inria.fr> <20110107141426.GF12229@vaio.hsd1.pa.comcast.net> Date: Fri, 7 Jan 2011 16:22:03 +0200 Message-ID: From: dmitry grebeniuk To: caml users Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] memory leak in toplevel? or, how to implement sizeof Hello. > # let sizeof maker arg = Note that what you are counting is not the size of the value ( = count of words that value uses on heaps), but the count of words allocated during the value's construction.