Hi David,

I'm having issues with gprof reporting empty times on the development
version of my network program nettee.

binutils-2.17.50.0.9-1mdv2007.1

For the record there is a 2.18 release out now, although I doubt if this will have any effect on the problem you are seeing.

Whereas for the development nettee:

Each sample counts as 0.01 seconds.
 no time accumulated

Hmm, well it appears that there is no profiling information in the gmon.out file. Have you checked that a gmon.out file is actually being produced ? And that it is not empty ?

My first guess as to the cause would be that you are now linking with startup files which do not enable profiling. Try adding "-v" to the gcc command line of the old and new nettee builds and see if different startup files are being used.

You might also try using the gcov program as an alternative to gprof (and --coverage instead of -pg).

Cheers
  Nick


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to