curious gprof behaviour on trivial testcase

Daniel Jacobowitz drow@false.org
Sat Apr 29 18:49:00 GMT 2006


On Fri, Apr 28, 2006 at 07:08:04PM -0700, James E Wilson wrote:
> I tested this patch on x86_64-linux.  There were no regressions.  Not
> very meaningful since there is no gprof testsuite, but I tested it by
> hand on a trivial and non-trivial testcase.  Without the patch I get an
> error on a trivial testcase.  With the patch, I get a flat profile for a
> trivial testcase.

For what my opinion is worth, I think this is a great change.  Every
time I try to use gprof on an application built without -pg I have to
go look up the argument to print the flat callgraph.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list