From de177677e2a5c669a96821c47889f18d00b7af7a Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 30 Jul 1996 17:26:34 +0000 Subject: Document that clock ticks are for the profiling clock and that the clock frequency is stored in the gmon header. --- lib/libc/sys/profil.2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') 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: -- cgit v1.1