Gprof does not generate a gmon.out-file at all :-(

Clemens Eisserer linuxhippy@gmail.com
Thu Sep 15 20:59:00 GMT 2005


Hello Dave,

>   This is a compile-only command.  Did you remember to also use -pg at the
> final link stage?

Thats it, thats a lot. Now everything works as it should, quite cool ;-)

However, sorry for nerving again - I profiled my app and can't really
believe the result:

 Zeit   seconds   seconds  Aufrufe ms/Aufru ms/Aufru  Name
 79.40      3.96     3.96                             main
 20.25      4.97     1.01  1572864     0.00     0.00  getpix
  0.40      4.99     0.02        2    10.01    10.01  fixH11ByteOrder
....................................

According to this profile most time is spent in main itself, only 20%
are spent in getpix - however if I comment out the function which
calls getpix() (not shown in the profile at all) the program runs a
lot faster - so only a small fraction of time is spent in main.
I already passed -fno-inline to gcc so that I do not loose methods.
Or do I interpret the profile in a wrong way? What could I do to make
the profile more useful?

Thanks in advance, lg Clemens



More information about the Binutils mailing list