Version française
Home     About     Download     Resources     Contact us    
Browse thread
profiling anonymous functions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Eric Breck <ebreck@c...>
Subject: profiling anonymous functions

Hello folks,

I'm profiling an ocaml program compiled with ocamlopt -p on linux/x86, and
I'm having trouble reading the gprof output.  In particular, is there a
way to tell which of the thirty or so anonymous functions (fun arg -> ) in
my module foo.ml corresponds to, say 'camlFoo__fun_664' in the gprof
output?  I can sometimes infer which ones are which by looking at gprof's
call graph, but sometimes not.  Is there some way to get from the
identifer gprof uses to the location in the source file where that
anonymous function is defined?

thanks,

Eric Breck