Re: gprof: gmon.out file is missing call-graph data (I'm using -pg)

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

 



Zohar Levi wrote:

>  when I run test it generates the gmon.out, but gprof
> complains:
> 
>  gprof: gmon.out file is missing call-graph data

It's complaining because there is no call-graph info because your
trivial testcase only has a single function.  If you run it on a
non-trivial testcase, or if you ask for a flat profile (-p) it will work
fine.

The following thread explains the problem and includes a patch which
changes the default behavior in this situation to -p.  Note that gprof
is part of binutils and not part of gcc and questions about it are
better suited for the binutils list.

http://sourceware.org/ml/binutils/2006-04/msg00421.html

Brian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux