The following options enable runtime profiling in the compiled program. Depending on the options, profiling is done at either the basic block, procedure, or loop level.
Table 3-10 Profiling Options
Action--Enable Profiling by: |
Option |
Details |
---|---|---|
Basic block (using tcov, old style). | -a | |
Procedure (using gprof). | -pg | |
Procedure (using prof). | -p | |
Loops with parallelization (SPARC). | -loopinfo | |
Basic block (using tcov, new style). | -xprofile=tcov |