[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gprof call counts wrong in multithreaded program
From: |
Nick Clifton |
Subject: |
Re: gprof call counts wrong in multithreaded program |
Date: |
Tue, 08 Jun 2010 11:40:42 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc12 Thunderbird/3.0.4 |
Hi Kalle,
It is an improvement, but I think it would be even better to
specifically mention glibc.
Ok - I have checked in a patch to change the paragraph to read as follows:
By contrast, the number-of-calls and basic-block figures
are derived by counting, not sampling. They are completely
accurate and will not vary from run to run if your program
is deterministic and single threaded. In multi-threaded
applications, or single threaded applications that link
with multi-threaded libraries, the counts are only
deterministic if the counting function is thread-safe.
(Note: beware that the mcount counting function in glibc
is not thread-safe).
Cheers
Nick
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: gprof call counts wrong in multithreaded program,
Nick Clifton <=