diff options
author | bde <bde@FreeBSD.org> | 2005-10-07 11:58:46 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2005-10-07 11:58:46 +0000 |
commit | 308cbc128c284b0bc85ef5ece6efa94515593376 (patch) | |
tree | b67ef7cdef34ba017405ea9fe4dd831a37372daa | |
parent | c1fc62329932a8e2822ba1bb6e4193677b448f20 (diff) | |
download | FreeBSD-src-308cbc128c284b0bc85ef5ece6efa94515593376.zip FreeBSD-src-308cbc128c284b0bc85ef5ece6efa94515593376.tar.gz |
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.
-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 035e146..b340ed9 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 |