diff options
author | Bruce Evans <bde@FreeBSD.org> | 2005-10-07 11:58:46 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 2005-10-07 11:58:46 +0000 |
commit | 762116ae25583cb226fea8a3bf17e4277b7e4f97 (patch) | |
tree | b67ef7cdef34ba017405ea9fe4dd831a37372daa /usr.bin | |
parent | 45edbdccd79e1844d08e6edf18ba37920e84179d (diff) | |
download | src-762116ae25583cb226fea8a3bf17e4277b7e4f97.tar.gz src-762116ae25583cb226fea8a3bf17e4277b7e4f97.zip |
Catch up with increasing the resolution suitable for high-res kernel
profiling from microseconds to nanoseconds in 1996. Picoseconds are
already needed.
Describe the choice of units for the per-call times in detail.
Notes
Notes:
svn path=/head/; revision=151057
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/gprof/gprof.1 | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/usr.bin/gprof/gprof.1 b/usr.bin/gprof/gprof.1 index 035e14674b3a..b340ed9d67c1 100644 --- a/usr.bin/gprof/gprof.1 +++ b/usr.bin/gprof/gprof.1 @@ -32,7 +32,7 @@ .\" @(#)gprof.1 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd June 20, 2004 +.Dd October 7, 2005 .Dt GPROF 1 .Os .Sh NAME @@ -111,9 +111,19 @@ Second, a flat profile is given, similar to that provided by .Xr prof 1 . This listing gives the total execution times, the call counts, -the time in msec or usec the call spent in the routine itself, and -the time in msec or usec the call spent in the routine itself including +the time that the call spent in the routine itself, and +the time that the call spent in the routine itself including its descendants. +The units for the per-call times are normally milliseconds, +but they are nanoseconds if the profiling clock frequency +is 10 million or larger, +and if a function appears to be never called then its total self time +is printed as a percentage in the self time per call column. +The very high profiling clock frequencies needed to get sufficient +accuracy in the per-call times for short-lived programs are only +implemented for +.Dq high resolution +(non-statistical) kernel profiling. .Pp Finally, an index of the function names is provided. .Pp |