/PROFILE   (Enable Profiling)

OverviewHow Do ILinker Options

Feature Only in Professional and Enterprise Editions   Profiling is supported only in Visual C++ Professional and Enterprise Editions. For more information, see .

The Enable Profiling option creates an output file that can be used with the profiler. A profiler-ready program has a map (.MAP) file. If it contains debugging information, the information must be stored in the output file instead of in a program database (.PDB) file and must be in Microsoft Format. This option also tells LINK to generate a relocation section in the program.

To find this option in the development environment, click Settings on the Project menu. Then click the Link tab, and click General in the Category box. Selecting the Enable Profiling check box enables the Generate Mapfile (/MAP) option in the General and Debug categories. If you select the Generate Debug Info check box, be sure to select the Microsoft Format option button under Debug Info 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 and /FIXED:NO.