glenda.party
term% ls -F
term% pwd
$home/manuals/unix_v8/1/prof
term% cat index.txt
PROF(1)                     General Commands Manual                    PROF(1)



NAME
       prof - display profile data

SYNOPSIS
       prof [ option ] ...  [ a.out [ mon.out ... ] ]

DESCRIPTION
       Prof  interprets  files  produced by monitor(3) or the -p option of cc,
       f77, or pascal(1).  The symbol table in the named object file  (`a.out'
       by  default) is read and correlated with the profile file (`mon.out' by
       default).  For each external symbol, the percentage of time spent  exe‐
       cuting  between  that symbol and the next is printed (in decreasing or‐
       der), 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.

       Call counts are tallied for subroutines compiled under option -p, which
       also causes a profile file to be produced automatically.

       Options are:

       -a     report all symbols, not just external symbols.

       -l     sort the output by symbol value

       -n
               sort the output by number of calls

       -s     produce a summary profile file in mon.sum

       -v -low -high
              produce  a graphic profile on the standard output for display by
              the plot(1) filters; optional numbers low and high, by default 0
              and 100, select a percentage of the profile to be plotted

       -z     include routines with zero usage in the output

FILES
       mon.out  for profile
       a.out    for namelist
       mon.sum  for summary profile

SEE ALSO
       monitor(3), profil(2), cc(1), plot(1)

BUGS
       Beware of quantization errors.
       Prof  is  confused  by f77 which puts the entry points at the bottom of
       subroutines and functions.



                                                                       PROF(1)