HP-UX Reference (11i v2 07/12) - 1 User Commands N-Z (vol 2)

p
prof(1) prof(1)
Call counts are always recorded precisely, however.
Only programs that call exit() (see exit(2)) or return from
main cause a profile file to be produced,
unless a final call to
monitor() is explicitly coded.
The use of the
cc -p option to invoke profiling imposes a limit of 600 functions that can have call
counters established during program execution. For more counters, call
monitor() directly. If this
limit is exceeded, other data is overwritten and the
mon.out le is corrupted. The number of call
counters used is reported automatically by the
prof command whenever the number exceeds 5/6 of the
maximum.
FILES
mon.out for profile
a.out for namelist
SEE ALSO
cc_bundled(1), exit(2), profil(2), crt0(3), end(3C), monitor(3C).
STANDARDS CONFORMANCE
prof: SVID2, SVID3, XPG2
174 Hewlett-Packard Company 2 HP-UX 11i Version 2: December 2007 Update