Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ prof(1) — Unisoft V7

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1)

monitor(3)

profil(2)

PROF(1)  —  UNIX Programmer’s Manual

NAME

prof − display profile data

SYNOPSIS

prof [ −a ] [ −l ] [ −n ] [ −z ] [ −s ] [ −low [ −high ] ] ] [ a.out [ mon.out ... ] ]

DESCRIPTION

Prof interprets the file produced by the monitor subroutine.  Under default modes, the symbol table in the named object file (a.out default) is read and correlated with the profile file (mon.out default).  For each external symbol, the percentage of time spent executing between that symbol and the next is printed (in decreasing order), together with the number of times that routine was called and the number of milliseconds per call.  If more than one profile file is specified, the output represents the sum of the profiles. 

In order for the number of calls to a routine to be tallied, the −p option of cc must have been given when the file containing the routine was compiled.  This option also arranges for the profile file to be produced automatically. 

Options are:

−a all symbols are reported rather than just external symbols. 

−l the output is sorted by symbol value. 

−z routines which have zero usage (as indicated by call counts and accumulated time) are nevertheless printed in the output. 

FILES

mon.outfor profile
a.outfor namelist
mon.sumfor summary profile

SEE ALSO

cc(1), monitor(3), profil(2)

BUGS

Beware of quantization errors. 

7th Edition  —  1/27/82

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026