/PGD (Specify Database for Profile-Guided Optimizations)
The latest version of this topic can be found at -PGD (Specify Database for Profile-Guided Optimizations).
PGD:filename
Remarks
where:
filename
Specifies the name of the .pgd file that will be used to hold information about the running program.
Remarks
When using /LTCG:PGINSTRUMENT, use /PGD to specify a nondefault name or location for the .pgd file. If you do not specify /PGD, the .pgd file name will be the same as the output file (.exe or .dll) name and will be created in the same directory from which the link was invoked.
When using /LTCG:PGOPTIMIZE, use /PGD to specify the name of the .pgd file to use to create the optimized image.
For more information, see Profile Guided Optimization.
To set this linker option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
Expand the Configuration Properties node.
Expand the Linker node.
Select the Optimization property page.
Modify the Profile Guided Database property.