This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: gprof omits called functions and includes uncalled functions


On Friday 15 June 2007 08:54, Angus wrote:
> I'm using gprof for the first time, and the flat profile is reporting
> functions that could not have been called, but omitting functions that had
> to be called.
> 	Could the problem be that gprof doesn't like C++? It seems to report the
> demanged names properly (or just reads them out of the debug information, I
> don't know). I know that it has problems with multi-process and
> multi-threaded programs, but the one I tested is neither. I built the
> entire project with -pg -g3 options. That's all I can think of that might
> be relevant to the environment.

	Actually, it seems the problem is that my gmon.out wasn't being created, so 
the call to gprof was picking up a stale one. I figured out why gmon.out 
wasn't being created, so now I'm getting what appears to be a sensible 
profile--n/m.


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