This is with stock RedHat 6.1 (package glibc-2.1.2-11).

I have a multithreaded Linux application which I want to profile with
gprof.  As near as I can tell, the call graph is correct but the
timing information is taken from the main thread only.  I assume this
is primarily because the profiling timer signal is only being
delivered to the main thread.

Questions:

Is the call graph data actually correct?  That is, are the routines
which gather that data thread-safe?

Are profiling timers per-thread?  Is it possible for me to enable it
in the other threads?  Would that even work?

Any suggestions would be appreciated.  Thanks!

 - Pat

Reply via email to