From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=AWL,DNS_FROM_RFC_POST, HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id BF914BB84 for ; Tue, 15 Jul 2008 07:42:41 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYBAMTVe0hKfS4cd2dsb2JhbACCPTSOf0MBDAMEBAkRA5RMhX0 X-IronPort-AV: E=Sophos;i="4.30,364,1212357600"; d="scan'208";a="27322625" Received: from yw-out-2324.google.com ([74.125.46.28]) by mail4-smtp-sop.national.inria.fr with ESMTP; 15 Jul 2008 07:42:41 +0200 Received: by yw-out-2324.google.com with SMTP id 5so2313395ywb.3 for ; Mon, 14 Jul 2008 22:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=W64017bdEU4eUERnTopSPna4kBmmo7Cr6rXxPXmSe4A=; b=vmtzbP0/vIyFyhCOxTBie/tEfc2Dgp+VX3zk69gwP4mtXry85Zz4Q93HS3c7GLuMqk s84KT54ZogZMsTiPjf9vvfAD1T3kjXAz6rsifJEcDgeYA07WGpDqFY7eix96f/cyOBYg lWaLF613dyRos4PSY4wq3TYjp2LkzT24/32bY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=wSlOet+JtN6Qg93PAwNaFmPvcWNsnP8zFSLcCO/NqgYfBj5oGc+cX0JFBBsi1nBpZh aVnsAG7WwroOaAQOTfxK1JHFNDbrFAwLqaW0RwKaQs7/TGvUi/zoyVKNJG269pLt/Sf8 qeak/yZDErgQ4w3mmtpayqJnw0a4KLsRdEH4M= Received: by 10.150.58.5 with SMTP id g5mr21619555yba.90.1216100559995; Mon, 14 Jul 2008 22:42:39 -0700 (PDT) Received: by 10.151.108.18 with HTTP; Mon, 14 Jul 2008 22:42:39 -0700 (PDT) Message-ID: <74cabd9e0807142242n3854dcf7w6d0cfacb0ca6d6a3@mail.gmail.com> Date: Mon, 14 Jul 2008 22:42:39 -0700 From: "Arthur Chan" To: "Jake Donham" Subject: Re: [Caml-list] Q: Profiling ocaml using gprof Cc: "Raj Bandyopadhyay" , caml-list@yquem.inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_105026_21982692.1216100560018" References: X-Spam: no; 0.00; ocaml:01 ocaml:01 ocaml's:01 stub:01 allocates:01 blits:01 buffer:01 beginner's:01 bug:01 ocaml's:01 stub:01 allocates:01 blits:01 buffer:01 beginner's:01 X-Attachments: cset="UTF-8" cset="UTF-8" ------=_Part_105026_21982692.1216100560018 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Is gprof better for profiling ocaml than ocaml's own profilers? How would you go about figuring out that that particular function stub is string concat? On Mon, Jul 14, 2008 at 9:09 PM, Jake Donham wrote: > On Mon, Jul 14, 2008 at 6:52 PM, Raj Bandyopadhyay wrote: > > 'camlPervasives__$5e_136'. > > It's the string concatenation function (ASCII 5E is ^). > > It allocates a new string and blits the two argument strings into it, > so you can probably do much better with explicit use of the Buffer > module. > > Jake > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- ----------------------------------------------------------------------- (\__/) (='.'=)This is Bunny. Copy and paste Bunny into your (")_(")signature to help him gain world domination. ------------------------------------------------------------------------ ------=_Part_105026_21982692.1216100560018 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Is gprof better for profiling ocaml than ocaml's own profilers?

How would you go about figuring out that that particular function stub is string concat?


On Mon, Jul 14, 2008 at 9:09 PM, Jake Donham <jake@donham.org> wrote:
 On Mon, Jul 14, 2008 at 6:52 PM, Raj Bandyopadhyay <rajb@rice.edu> wrote:
> 'camlPervasives__$5e_136'.

It's the string concatenation function (ASCII 5E is ^).

It allocates a new string and blits the two argument strings into it,
so you can probably do much better with explicit use of the Buffer
module.

Jake

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



--
-----------------------------------------------------------------------
(\__/)
(='.'=)This is Bunny. Copy and paste Bunny into your
(")_(")signature to help him gain world domination.
------------------------------------------------------------------------ ------=_Part_105026_21982692.1216100560018--