C++ User's Guide

Profiling Options

The following profiling options are listed in alphabetical order.

Action 

Option 

Details  

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

-p

"-p"

Generates code for profiling. 

-xa

"-xa"

Compiles for profiling with the gprof profiler.

-xpg

"-xpg"

Collects or optimizes with runtime profiling data. 

-xprofile=tcov

"-xprofile=p"