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
gprof timing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-06-30 (23:01)
From: Mike Lin <mikelin@m...>
Subject: gprof timing
I'm profiling an ocaml program with gprof on an AMD64 linux machine - does
anyone know what to do when the runtime it's reporting (i.e. bottom of the
"cumulative seconds" column) is much much less than the actual runtime
(10-20% of it)? Is this normal somehow?
I've compiled everything with the right flags as far as I can tell, the
program isn't I/O or swap bound and there is nothing else CPU-intensive
running on the machine. The runtime of the program is not much slower with
profiling on than otherwise -- certainly not by an order of magnitude. The
profile that comes out more or less makes sense (i.e. highly intensive
functions appear at the top of the flat profile) except all of the real
times reported seem to be scaled down.