Document that clock ticks are for the profiling clock and that the

clock frequency is stored in the gmon header.
This commit is contained in:
bde 1996-07-30 17:26:34 +00:00
parent 9a7875fe1e
commit de177677e2

View File

@ -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: