Basic Profile-guided Optimization Options

Only two options are used in a basic profile-guided optimization. These options are:

Basic Profile-Guided Optimization Options

Option Description
-prof_gen[x]  

Instructs the compiler to produce instrumented code in your object files in preparation for instrumented execution. NOTE: The dynamic information files are produced in phase 2 when you run the instrumented executable.

-prof_use

Instructs the compiler to produce a profile-optimized executable and merges available dynamic information (.dyn) files into a pgopti.dpi file. If you perform multiple executions of the instrumented program, -prof_use merges the dynamic information files again and overwrites the previous pgopti.dpi file.