This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
gprof does not show "time-spent"
- To: <binutils at sources dot redhat dot com>
- Subject: gprof does not show "time-spent"
- From: Dehong_Zhang <dhzhang at fnal dot gov>
- Date: Wed, 17 Oct 2001 14:28:54 -0500 (CDT)
Hi,
I am trying to do some profiling on Linux and OSF1.
I did include "-pg" when compiling and could get the "gmon.out" file.
But "gprof -b -p ***" shows all 0's for the time information, like:
granularity: each sample hit covers 0 byte(s) no time accumulated
% cumulative self self total
time seconds seconds calls ms/call ms/call name
0.0 0.00 0.00 10 0.00 0.00 func__Fic [1]
0.0 0.00 0.00 1 0.00 0.00 main [2]
Here func_Fic should have spent all the time.
Please advice.
Thanks and best regards,
Dehong