prof-genx, Qprof-genx

Instruments a program for profiling and gathers extra information for code coverage tools.

IDE Equivalent

None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux: -prof-genx
Windows:  /Qprof-genx

Arguments

None

Default

OFF Programs are not instrumented for profiling.

Description

This option instruments a program for profiling and gathers extra information (source position) for code coverage tools.

Like -prof-gen (Linux) or /Qprof-gen (Windows), it is used in phase 1 of the Profile Guided Optimizer (PGO) to instruct the compiler to produce instrumented code in your object files in preparation for instrumented execution. It also creates a new static profile information file (.spi).

If you do not use a code coverage tool, this option may slow parallel compile times.

If you are doing a parallel make, this option will not affect it.

Alternate Options

Linux: -prof_genx
Windows: /Qprof_genx

See Also

prof-gen, Qprof-gen compiler options