bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gprof reporting zero times for one program


From: Nick Clifton
Subject: Re: gprof reporting zero times for one program
Date: Fri, 25 Jan 2008 16:44:15 +0000
User-agent: Thunderbird 1.5.0.12 (X11/20071018)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]