Poor-Man’s Profiler

Microsoft’s C/C++ compiler supports the /Gh and /GH switches, these options allow the developer to inject a function call into the beginning and exit of every procedure being compiled. Aside from enabling some cool logging/traceability scenarios, you can also utilize this functionality to build in a simple profiler.   There have been a (surprisingly large)…

0

Poor-Man’s ISAPI Filter

On IIS, writing an ISAPI filter can give you flexible control over the URL path which users pass into your site. For example, normally when a user tries to hit http://server/path1/path2/filename, the virtual path must exist in some form on the server’s file system in order for the web server to resolve the page. But…

0