*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: profil | Section: 2 | Source: UNIX v10 | File: profil.2
PROFIL(2) System Calls Manual PROFIL(2) NAME profil - execution time profile SYNOPSIS void profil(buff, bufsiz, offset, scale) unsigned short *buff; int bufsiz, offset; unsigned scale; DESCRIPTION Buff points to an area of core whose length in bytes is given by buf- siz. After this call, the user's program counter is examined each clock tick; offset is subtracted from it, and the result multiplied by scale, divided by 65536 and then rounded up to a multiple of two. If the resulting number (n) is less than bufsiz, then buff[n/2] is incre- mented. Profiling is turned off by giving a scale of 0. It is rendered inef- fective by giving a bufsiz of 0. Profiling is turned off when an exec is executed, but remains on in child and parent both after a fork. Profiling is turned off if an update in buff would cause a memory fault. SEE ALSO prof(1), monitor(3) BUGS Because of the rounding up, single byte instructions cannot be exactly profiled. PROFIL(2)

Navigation Options