bug-binutils
[Top][All Lists]
Advanced

[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: Wed, 26 May 2010 15:58:13 +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,

  [I am very sorry about taking so long to reply to your email].

"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."

In one series of three 95-minute runs, gprof showed that one
function had been called 1858749793, 1858746382, and 1858740724
times.  The variation there was 0.0005%; not much, but anyway it
made me think there was something unexpectedly random going on
with my algorithms.

Therefore, I just ask that you update that gprof documentation to
warn about this issue.

How do you feel about the attached patch to update the documentation ?

Cheers
  Nick


Attachment: gprof.texi.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]