How to profile a multithreaded program using gprof?

Daniel Jacobowitz drow@false.org
Fri Nov 30 15:18:00 GMT 2007


On Fri, Nov 30, 2007 at 02:55:23PM +0100, Marcel Loose wrote:
> Hi all,
> 
> I've been trying to profile a multithreaded program, but have not been
> successful so far.

You can't.  gprof profiling generally does not support threaded programs.
Use something else, like callgrind or oprofile.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list