This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gprof


Ken Raeburn wrote:

On Sep 15, 2005, at 04:45, Michael Trimarchi wrote:

Hi all,
I'd like to profile multithread application using gprof, but I cannot profile thread !!! why?
Is the ITIMER signal problem?
regards
Michael


I've tried this before... yes, depending on the system, you may need to play some games after thread creation to start profiling in the newly created thread, such as explicitly scheduling an interrupt timer. But also, if you care about the accuracy of the results, you may need to modify the C runtime support code for profiling, which typically updates the per-function data in a manner that is not thread-safe.

Unfortunately, I don't have any code to show you for either issue, right now...

Ken

>But also, if you care about the accuracy of the results, you may need to modify the C runtime support code for >profiling, which typically updates the per-function data in a manner that is not thread-safe.
may you explain more precisely this point?
Regards
Michael




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]