Quoting Michael Matz <m...@suse.de>:

Hi,

On Sun, 21 Feb 2010, Jon Turner wrote:

I have recently encountered a gross inaccuracy in gprof that
I can't explain. Yes, I know gprof uses a sampling technique

This is incorrect.  Code compiled with -pg will call mcount on each
function entry.  If there are many calls (compared to other computations)
the mcount overhead might become fairly large.

The mcount overhead actually depends on the machine description, although
most ports have standardized on a very runtime profligate scheme.

Reply via email to