HOWTO: Profile an ISAPI DLL
ID: Q195768
|
The information in this article applies to:
-
Microsoft Internet Information Server version 4.0
SUMMARY
This article provides information about profiling an ISAPI DLL. This
information is not available in Microsoft Source Profiler documentation.
MORE INFORMATION
Use the following steps to profile an ISAPI DLL:
- Build your DLL. Enable profiling and generation of a map file on
the linker options.
- Run this command on your ISAPI DLL:
prep /om /ft <yourDLL>.dll
- This generates a file called <yourDLL>._ll. Rename your original DLL to
something else and then rename the ._ll file to <yourDLL>.dll.
- Copy this profiling version of your ISAPI dll and profile.dll to the
directory where they will be run on your IIS server.
(with VC6 profile.dll is found in:
<d>:\Program Files\Microsoft Visual Studio\VC98\Bin
where <d> is the letter of the drive where VC6 is installed).
- Set the __ProfileBPI and __ProfilePBO environment variables as per the
instructions in the Knowledge Base article: Q117681 (see REFERENCES
section below).
- Stop and restart IIS (to ensure that the environment variables are valid
for Inetinfo.exe while it is running) and then run whatever processes
you are going to use to exercise the code in your ISAPI DLL.
NOTE: To stop IIS 4.0, issue this command: net stop iisadmin /y
To start Web Publishing Service again, use: net start w3svc.
- Stop IIS and run these commands in the directory where the PBI and PBO
files are located:
prep /m <yourDLL>
plist <yourDLL>
NOTE: Do not add the .DLL extension onto these last two commands. Errors
are generated if .DLL extension is added
REFERENCES
For additional information, please see the following article(s) in the
Microsoft Knowledge Base:
Q117681 Profiling Windows NT Services
Visual C++ online documentation
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by
Scott deBeaubien, Microsoft Corporation.
Additional query words:
Keywords : kbISAPI
Version : winnt:4.0
Platform : winnt
Issue type : kbhowto