-p

Description

Sets up the object files produced by the compiler for profiling.

Syntax

Read syntax diagramSkip visual syntax diagram>>- -p---------------------------------------------------------><

Notes

If the -qtbtable option is not set, the -p option will generate full traceback tables.

When compiling and linking in separate steps, the -p option must be specified in both steps.

Example

To compile myprogram.c so that it can be used with your operating system's prof command, enter:

xlc++ myprogram.C -p

Related information