Share via


Profiling Multiple .DLL and .EXE Files

OverviewDetails

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

Up to 16 DLLs and their calling executable can be profiled in a single run when using the Phase I PREP command line options.

The following commands demonstrate how to profile an executable file and two DLLs from the command line:

PREP /OM /FC wingame.exe aliens.dll hiscore.dll
PROFILE wingame.exe
PREP /M  wingame
PLIST wingame >wingame.out

The first line causes PREP to create WINGAME.PBI and WINGAME.PBT files that include information on WINGAME.EXE, ALIENS.DLL, and HISCORE.DLL. The next line causes PROFILE to run WINGAME.EXE (actually WINGAME._XE, as generated by PREP Phase I). During the execution of WINGAME, PROFILE collects statistics for WINGAME.EXE as well as ALIENS.DLL and HISCORE.DLL, if they are called. The final two lines process the information from the profiling session and store the results in WINGAME.OUT.