Advanced PGO Options

The options controlling advanced PGO optimizations are:

Specifying the Directory for Dynamic Information Files

Use the -prof_dirdirname  option to specify the directory in which you intend to  place the dynamic information (.dyn) files to be created. The default is the directory where the program is compiled. The specified directory must already exist.

You should specify -prof_dirdirname option with the same directory name for both the instrumentation and feedback compilations. If you move the .dyn files, you need to specify the new path.

Specifying Profiling Summary File

The -prof_filefilename  option specifies file name for profiling summary file.

Guidelines for Using Advanced PGO

When you use PGO, consider the following guidelines:

Note
The compiler issues a warning that the dynamic information does not correspond to a modified function.

See PGO Environment Variables.