From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 46A597EC41 for ; Wed, 24 Oct 2012 15:27:40 +0200 (CEST) Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of john@coherentgraphics.co.uk) identity=pra; client-ip=188.64.186.31; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="john@coherentgraphics.co.uk"; x-sender="john@coherentgraphics.co.uk"; x-conformance=sidf_compatible Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of john@coherentgraphics.co.uk) identity=mailfrom; client-ip=188.64.186.31; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="john@coherentgraphics.co.uk"; x-sender="john@coherentgraphics.co.uk"; x-conformance=sidf_compatible Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@bluemoon3.ukhost4u.com) identity=helo; client-ip=188.64.186.31; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="john@coherentgraphics.co.uk"; x-sender="postmaster@bluemoon3.ukhost4u.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnkCAGrsh1C8QLofgWdsb2JhbABEhU28IyMBARYmJ4IeAQEFOEEQCwcRCRMSDwJGBg4FiAi7NJJOA6kc X-IronPort-AV: E=Sophos;i="4.80,639,1344204000"; d="scan'208";a="178737978" Received: from bluemoon3.ukhost4u.com ([188.64.186.31]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 Oct 2012 15:27:08 +0200 Received: from 78-105-203-81.zone3.bethere.co.uk ([78.105.203.81]:55987 helo=feast.lan) by bluemoon3.ukhost4u.com with esmtpa (Exim 4.80) (envelope-from ) id 1TR0tx-0006nO-Dk; Wed, 24 Oct 2012 14:21:42 +0100 Message-ID: <5087ECA8.30503@coherentgraphics.co.uk> Date: Wed, 24 Oct 2012 14:27:04 +0100 From: John Whitington User-Agent: Postbox 3.0.5 (Macintosh/20120826) MIME-Version: 1.0 To: David MENTRE CC: caml users References: <5087C409.3030203@coherentgraphics.co.uk> <5087E16C.8020503@coherentgraphics.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bluemoon3.ukhost4u.com X-AntiAbuse: Original Domain - inria.fr X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - coherentgraphics.co.uk X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [Caml-list] Behaviour of an OCaml program: any possible GC improvement? Hi David, David MENTRE wrote: > 2012/10/24 John Whitington: >> means gprof can't find the calling function(s). > > :-( > >> Are you sure >> you've used the -p both for compiling all source files and also when linking >> them into the final executable? > > I just checked. Yes, I'm using -p for both compilation and linking. > Would it be due to my old ocaml version? On Linux, profiling with gprof has worked for a long time, so I doubt it. I'm afraid I have no other suggestions. Gprof on Mac OS X doesn't seem to work with modern versions of the XCode tool chain. There is something called "instruments" instead, but I've not investigated it - I build on linux to profile. -- John Whitington Director, Coherent Graphics Ltd http://www.coherentpdf.com/