diff options
author | bde <bde@FreeBSD.org> | 1996-07-30 17:26:34 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-07-30 17:26:34 +0000 |
commit | de177677e2a5c669a96821c47889f18d00b7af7a (patch) | |
tree | 5e0d56def14663271d077e0f4b88990bd4caaf6f /lib/libc | |
parent | 9a7875fe1e8221e85022e52089a859602763b515 (diff) | |
download | FreeBSD-src-de177677e2a5c669a96821c47889f18d00b7af7a.zip FreeBSD-src-de177677e2a5c669a96821c47889f18d00b7af7a.tar.gz |
Document that clock ticks are for the profiling clock and that the
clock frequency is stored in the gmon header.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/profil.2 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/sys/profil.2 b/lib/libc/sys/profil.2 index 670e343..ac017c5 100644 --- a/lib/libc/sys/profil.2 +++ b/lib/libc/sys/profil.2 @@ -49,10 +49,12 @@ The function enables or disables program counter profiling of the current process. If profiling is enabled, -then at every clock tick, +then at every profiling clock tick, the kernel updates an appropriate count in the .Fa samples buffer. +The frequency of the profiling clock is recorded +in the header in the profiling output file. .Pp The buffer .Fa samples @@ -62,7 +64,7 @@ bytes and is divided into a series of 16-bit bins. Each bin counts the number of times the program counter was in a particular address range in the process -when a clock tick occurred while profiling was enabled. +when a profiling clock tick occurred while profiling was enabled. For a given program counter address, the number of the corresponding bin is given by the relation: |