prof(1)prof(1)Nameprof - profile an object file
Syntaxprof [-a] [-l] [-n] [-z] [-s] [-v] [low[-high]]] [file1[file2...]]
Description
The command interprets the file produced by the 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 exe‐
cuting 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.
Options
In order for the number of calls to a routine to be tallied, the -p
option of or must have been given when the file containing the routine
was compiled. This option also arranges for the profile file to be
produced automatically.
-a Displays all symbols rather than just external symbols.
-l Displays output by symbol value.
-n Displays output by number of calls.
-s Summary profile file is produced in mon.sum. This is useful only
when more than one profile file is specified.
-v Produces graphic output for display by the filters. When plot‐
ting, the numbers low and high, by default 0 and 100, may be
given, which causes a selected percentage of the profile to be
plotted with accordingly higher resolution.
-z Routines having zero usage, as indicated by call counts and accu‐
mulated time, are printed in the output.
Restrictions
Beware of quantization errors.
The command causes confusion because the entry points are at the bottom
of subroutines and functions.
Files
mon.out for profile
a.out for namelist
mon.sum for summary profile
See Alsocc(1), plot(1g), profil(2), monitor(3)
VAX prof(1)