man(1) Manual page archive


     PROF(1)                                                   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 or f77. 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 symbol, the
          percentage of time spent executing between that symbol and
          the next is printed (in decreasing order), together with the
          time spent there and the number of times that routine was
          called.  If more than one profile file is specified, the
          output represents the sum of the profiles.

          Zero call counts are tallied for subroutines not compiled
          with option -p.  The flag -p must be passed to the loader to
          get the profiling output written.

          Options are:

          -l   Sort the output by symbol value.

          -n   Sort the output by number of calls.

          -s   Produce a summary profile file in

          -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
          for profile
          for namelist
          for summary profile

     SEE ALSO
          time(1), lcomp(1), monitor(3), getopt(3), profil(2),
          plot(1), cc(1), f77(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)                                                   PROF(1)

          Option -v has been disabled.