English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2005-01-24 (20:13)
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?


Eric Breck