* [patch] gprof bucket overflows
@ 2003-05-14 15:06 Dave Brolley
0 siblings, 0 replies; only message in thread
From: Dave Brolley @ 2003-05-14 15:06 UTC (permalink / raw)
To: cgen
[-- Attachment #1: Type: text/plain, Size: 357 bytes --]
I have committed the following patch. When a bucket of the gprof
histogram overflowed (exceeded the 64k limit) the other buckets which
did not overflow were being counted again in the subsequent histogram(s).
2003-05-13 Dave Brolley <brolley@redhat.com>
* gprof.cxx (profiling_components): Set bucket count to zero when it
is empty.
[-- Attachment #2: gprof-bucket.patch.txt --]
[-- Type: text/plain, Size: 542 bytes --]
Index: gprof.cxx
===================================================================
RCS file: /cvs/src/src/sid/component/profiling/gprof.cxx,v
retrieving revision 1.10
retrieving revision 1.11
diff -c -p -r1.10 -r1.11
*** gprof.cxx 8 Jan 2003 06:46:49 -0000 1.10
--- gprof.cxx 14 May 2003 14:59:52 -0000 1.11
*************** namespace profiling_components
*** 327,332 ****
--- 327,333 ----
else
{
put_bytes (of, host_int_2(count), 2);
+ b->second = 0; // in case we iterate due to overflow
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-14 15:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14 15:06 [patch] gprof bucket overflows Dave Brolley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).