I used the 5.0 evaluation copy of RedGate ANTS profiler tool on a standard Windows Sever 2003 R2 / SharePoint 2007 virtual machine.
To get profiling working with my SharePoint code base I made the following adjustments:
- Allow site collection administrator to “Act as part of the operating system” and “Impersonate a client after authentication” and to Administrators group – All this was already the case.
- Run “ANTS Performance Profiler 5 Service” and “ANTS Memory Profile 5 Service” under the site collection administrator account
- Copied my applications dll’s and pdbs from GAC to web application bin folder, as I was previously using the GAC.
A complete guide to setting up ANTS profiler with SharePoint
The ANTS profiler is extremely easy to use and it quickly helped me narrow down some issues using XlstCompiledTransform objects.