This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gprof does not show "time-spent"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]