diff options
author | Bruce Evans <bde@FreeBSD.org> | 1996-10-16 21:02:49 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1996-10-16 21:02:49 +0000 |
commit | db6a4b8826b4744b830de97a63eec40b2db0f30b (patch) | |
tree | d977840a4ff24c07b3e1220c9847c5457e8a8c38 /usr.bin/gprof/gprof.h | |
parent | 717fb679ee82ef0682273da87d928f12a81599af (diff) | |
download | src-db6a4b8826b4744b830de97a63eec40b2db0f30b.tar.gz src-db6a4b8826b4744b830de97a63eec40b2db0f30b.zip |
Use a (signed) int32_t counter instead of an `unsigned int' counter
for the GPROF4 case. This allows a simpler method to be used for
non-statistical profiling (it allows overhead adjustments to be
subtracted from one counter without harm if that counter goes
negative; otherwise the adjustment would have to be distributed).
32 bit counters were already too small for GPROF4 with a 200MHz
clock. int64_t counters should be used.
Notes
Notes:
svn path=/head/; revision=18968
Diffstat (limited to 'usr.bin/gprof/gprof.h')
-rw-r--r-- | usr.bin/gprof/gprof.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/gprof/gprof.h b/usr.bin/gprof/gprof.h index afe435745caf..27808d2325da 100644 --- a/usr.bin/gprof/gprof.h +++ b/usr.bin/gprof/gprof.h @@ -82,7 +82,7 @@ typedef int bool; long hz; #ifdef GPROF4 -typedef unsigned int UNIT; +typedef int32_t UNIT; #else typedef u_short UNIT; /* unit of profiling */ #endif |