Version française
Home     About     Download     Resources     Contact us    
Browse thread
Which function is consing?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christopher L Conway <cconway@c...>
Subject: Re: [Caml-list] Which function is consing?
Joel,

I'm not sure I understand you correctly, but it's highly doubtful that
consing is the hotspot in your program. If you're problem is
interpreting the mangled function names that show up in gprof, it's
sometimes possible to correlate execution count with source locations
using ocamlcp. See here:
http://procrastiblog.blogspot.com/2007/04/profiling-ocaml-revealed.html

This won't let you figure out "which function is consing" unless you
rename ::, e.g.,
let mycons x xs = x :: xs

Chris

On 7/4/07, Joel Reymont <joelr1@gmail.com> wrote:
> Folks,
>
> There's apparently no way to determine what function is consing using
> the profiler.
>
> How do you get around this limitation in your production code?
>
>         Thanks, Joel
>
> --
> http://topdog.cc      - EasyLanguage to C# compiler
> http://wagerlabs.com  - Blog
>
>
>
>
>
> _______________________________________________
> 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
>
>