/PROFILE

Syntax:

/PROFILE

Creates an output file that can be used with the profiler. This option is found only in the General category on the Link tab.

A profiler-ready program has a map file. If it contains debugging information, the information must be stored in the output file instead of a program database file (.PDB file) and must be in Microsoft old-style format.

In the visual development environment, setting Enable Profiling enables the Generate Mapfile option in the General and Debug categories. If you set the Generate Debug option, be sure to choose Microsoft Format in the Debug category.

On the command line, /PROFILE has the same effect as setting the /MAP option; if the /DEBUG option is specified, then /PROFILE also implies the options /DEBUGTYPE:CV and /PDB:NONE. In either case, /PROFILE implies /INCREMENTAL:NO.

You can select this option in the visual development environment by selecting the Enable Profiling check box in the General category of the Link tab in the Project Settings dialog box.