32v 1m prof
From Computer History Wiki
PROF(1) UNIX Programmer's Manual PROF(1)
Contents
NAME
prof - display profile data
SYNOPSIS
prof [ -v ] [ -a ] [ -l ] [ -_l_o_w [ -_h_i_g_h ] ] [ file ]
DESCRIPTION
_P_r_o_f interprets the file _m_o_n._o_u_t produced by the _m_o_n_i_t_o_r subroutine. Under default modes, the symbol table in the named object file (_a._o_u_t default) is read and correlated with the _m_o_n._o_u_t profile file. 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 the -a option is used, all symbols are reported rather than just external symbols. If the -l option is used, the output is listed by symbol value rather than decreasing per- centage.
If the -v option is used, all printing is suppressed and a graphic version of the profile is produced on the standard output for display by the _p_l_o_t(1) filters. The numbers _l_o_w and _h_i_g_h, by default 0 and 100, cause a selected percentage of the profile to be plotted with accordingly higher resolu- tion.
In order for the number of calls to a routine to be tallied, the -p option of _c_c must have been given when the file con- taining the routine was compiled. This option also arranges for the _m_o_n._o_u_t file to be produced automatically.
FILES
mon.out for profile a.out for namelist
SEE ALSO
monitor(3), profil(2), cc(1), plot(1)
BUGS
Beware of quantization errors.