Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Feature Only in Professional and Enterprise Editions Profiling is supported only in Visual C++ Professional and Enterprise Editions. For more information, see .
For function profiling, the DLL is typically renamed with an _LL extension, but the .EXE file looks for a file with a .DLL extension when it executes. Therefore the prepared DLL must be renamed prior to profiling.
The following batch file (PROFDLL.BAT) profiles a DLL with the assumption that the .EXE file has not been prepared for profiling:
COPY %1.dll save
PREP /OM %1.dll
COPY %1._ll %1.dll
PROFILE /I %1 /O %1 %2 %3 %4 %5 %6
COPY save %1.dll
PREP /M %1
PLIST %1
Note The preceding batch generates a message warning you that the main program has not been prepared for profiling.
If you had a main program HEARTS.EXE that used a DLL called CARDS.DLL, and you wanted to profile only CARDS.DLL, you would run the preceding batch as:
PROFDLL cards hearts