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 E91B57EC41 for ; Wed, 24 Oct 2012 14:45:51 +0200 (CEST) Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of thelema314@gmail.com) identity=pra; client-ip=209.85.223.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="thelema314@gmail.com"; x-sender="thelema314@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail1-smtp-roc.national.inria.fr: domain of thelema314@gmail.com designates 209.85.223.182 as permitted sender) identity=mailfrom; client-ip=209.85.223.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="thelema314@gmail.com"; x-sender="thelema314@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ie0-f182.google.com) identity=helo; client-ip=209.85.223.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="thelema314@gmail.com"; x-sender="postmaster@mail-ie0-f182.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApIBAJ7hh1DRVd+2m2dsb2JhbABEhU28JwgjAQEBAQEICQsdJ4IeAQEBBBICJAgBGxwCAwwGBQsNCRYPCQMCAQIBEREBBQEcEwgBAR6HTwEDD5xhCQOMKIJ2hHoKGScNWYh1AQUMi1SDSIMjA5VzhWSIdD+ELQ X-IronPort-AV: E=Sophos;i="4.80,639,1344204000"; d="scan'208";a="178729576" Received: from mail-ie0-f182.google.com ([209.85.223.182]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 24 Oct 2012 14:45:50 +0200 Received: by mail-ie0-f182.google.com with SMTP id k10so1079600iea.27 for ; Wed, 24 Oct 2012 05:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=VIakfO0CtqDcHoEAbmb8sgTRVcNpWorh2Oj+isE7X8A=; b=vvLjulGhCoMkkWMMU7XM+KhkQicx4dW6LtsQFgFXUsChWU1Ji/XVKX5Zl0hFiKxFUC upRgNFs6EiONWAWAKPTmJeWii7Y4pePJLR7oF5YaRkGRqvW2AfIJ/XRhS7jQMPV0ba9U NjR/pKzelrhzaJCWXZ1n5LlExpX15sRNE2FYm0MJgyb+MxHF+3d96j3qZOVB6dcHYadn 85JtmijZFbV91j4vh1baxYRzEMs+NUzzurDZWdf/gCHaoVF29xxdCVbkJz8JuGfR5wZs guI+2Dwzzibj68l4VfI/n0zFq/acfXkJYZlB/CnWs7MSig7pEC5jkSi/dE+6VKxcVHTI ipVw== Received: by 10.50.17.200 with SMTP id q8mr2251408igd.46.1351082749426; Wed, 24 Oct 2012 05:45:49 -0700 (PDT) Received: from [192.168.1.73] (99-121-78-10.lightspeed.lnngmi.sbcglobal.net. [99.121.78.10]) by mx.google.com with ESMTPS id 7sm1807543igh.0.2012.10.24.05.45.47 (version=SSLv3 cipher=OTHER); Wed, 24 Oct 2012 05:45:48 -0700 (PDT) Message-ID: <5087E301.2090201@gmail.com> Date: Wed, 24 Oct 2012 08:45:53 -0400 From: Edgar Friendly User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: caml-list@inria.fr References: <5087C409.3030203@coherentgraphics.co.uk> <5087E16C.8020503@coherentgraphics.co.uk> In-Reply-To: <5087E16C.8020503@coherentgraphics.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] Behaviour of an OCaml program: any possible GC improvement? On 10/24/2012 8:39 AM, John Whitington wrote: > David MENTRE wrote: >> >> [2] 84.6 0.03 449.61 caml_call_gc [2] >> 0.00 449.61 755484/755484 caml_garbage_collection [3] > 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? This line in the original profile might explain: > 9.79 347.23 52.01 88113 0.00 0.00 camlMap__map_181 I'm guessing there's a lot of calls to Map.map, and this is causing all the garbage. As part of the stdlib, it wouldn't automatically be compiled for profiling, no? E.