Edit

/SPDEMBED (Embed Sample Profile Database)

Embeds the Sample Profile Database (SPD) data into the Program Database (PDB) file during a Sample Profile-Guided Optimization (SPGO) build.

Syntax

/SPDEMBED

Remarks

When you build with /SPDIN, the linker uses the profile data in the SPD file to make optimization decisions. Use /SPDEMBED together with /SPGO to embed the SPD data into the PDB file produced by the build. Embedding the SPD in the PDB keeps the profile data together with the debug symbols, which simplifies distribution and archiving of build artifacts.

To extract an SPD file that you embedded in a PDB, use SPDConvert /extract.

For more information about the SPGO workflow, see Tutorial: Use Sample Profile-Guided Optimization (SPGO) to improve performance.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
  2. Select the Configuration Properties > Linker > Command Line property page.
  3. Add /SPDEMBED to the Additional Options box. Choose OK to save your changes.

To set this linker option programmatically

See also

MSVC linker reference
MSVC Linker Options
/SPD (Specify Sample Profile Database)
/SPDIN (Use Sample Profile Database)
/SPGO (Enable Sample Profile-Guided Optimization)
Tutorial: Use Sample Profile-Guided Optimization (SPGO) to improve performance