Parallel Programming Guide for HP-UX Systems

UPC
Profiling
Chapter 5106
Profiling
-p [Tru64 UNIX Only]
Perform profiling by periodically sampling the value of the program counter. This option affects only
linking. When linking is done, this option replaces the standard run-time startup routine with the
profiling run-time startup routine (mcrt0.o) and searches the level 1 profiling library
(libprof1.a). When profiling is completed, the startup routine calls the monstartup routine and
produces a mon.out file that contains execution-profiling data for use with the postprocessor prof.
Same as -p1 [Tru64 UNIX Only]
-p0 [Tru64 UNIX Only]
Do not perform profiling. This is the default.
-p1 [Tru64 UNIX Only]
Perform profiling by periodically sampling the value of the program counter. This option affects only
linking. When linking is done, this option replaces the standard run-time startup routine with the
profiling run-time startup routine (mcrt0.o) and searches the level 1 profiling library
(libprof1.a). When profiling is completed, the startup rou- tine calls the monstartup routine and
produces a mon.out file that contains execution-profiling data for use with the postprocessor prof.
Same as -p.
-[no]pg [Tru64 UNIX Only]
Perform call graph profiling using the gprof tool. Specify -nopg to disable selectively profiling for
individual modules when using the -pg graph profiling option.
For more information on profiling UPC code, see the Tru64 UNIX Programmer's Guide and
the gprof(1) reference page.