File:  [Research Unix] / researchv10dc / dist / man / v4 / manx / profil.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.pa 1
.he 'PROFIL (II)'3/7/73'PROFIL (II)'
.ti 0
NAME		profil -- execution time profile
.s3
.ti 0
SYNOPSIS	profil = 44.		/ not in assembler
.br
sys	profil; buff; bufsiz; offset; scale
.s3
.ti 0
DESCRIPTION	buff____
points to an area of core whose length (in bytes) is given by
bufsiz______.
After this call, the user's program counter (pc)
is examined each clock tick (60th second);
offset______ is subtracted from it, and the result multiplied by
scale_____.
If the resulting number corresponds to a word
inside buff____, that word is incremented.
.s3
The scale is interpreted as an unsigned,
fixed-point fraction with binary point at the
left: 177777(8) gives a 1-1 mapping of pc's to words
in buff____; 77777(8) maps each pair of instruction words
together.
2(8) maps all instructions onto the beginning of
buff____ (producing a non-interrupting core clock).
.s3
Profiling is turned off by giving a scale_____ of 0 or 1.
It is rendered
inffective by giving a bufsiz______ of 0.
.s3
.ti 0
SEE ALSO	[profiling subroutines]
.s3
.ti 0
BUGS		Profiling must be turned off before
an exec____(II), since incrementation of
the buffer is not automatically stopped.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.