prof-gen, Qprof-gen

Instruments a program for profiling.

IDE Equivalent

None

Architectures

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

Syntax

Linux: -prof-gen
Windows:  /Qprof-gen

Arguments

None

Default

OFF Programs are not instrumented for profiling.

Description

This option instruments a program for profiling to get the execution count of each basic block. It also creates a new static profile information file (.spi).

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.

Alternate Options

Linux: -prof_gen
Windows: /Qprof_gen

See Also

prof-genx, Qprof-genx compiler options

Optimizing Applications:
Basic PGO Options

Example of Profile-Guided Optimization