Instruments a program for profiling.
None
IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture
Linux: | -prof-gen |
Windows: | /Qprof-gen |
None
OFF | Programs are not instrumented for profiling. |
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.
Linux: -prof_gen
Windows: /Qprof_gen
prof-genx, Qprof-genx compiler options
Optimizing Applications:
Basic PGO Options
Example of Profile-Guided Optimization