Sun Studio 12: C++ User's Guide

3.3.13 Profiling Options

Table 3–14 Profiling Options

Option 

Action 

–p

Prepares the object code to collect data for profiling using prof.

–xa

Generates code for profiling. 

–xpg

Compiles for profiling with the gprof profiler.

–xprofile

(SPARC) Collects or optimizes using runtime profiling data.