SharePoint 2010 – The Performance Guide – Part 5 – Track bottlenecks while using Ants Performance Profiler

  1. Why is performance important?
  2. SharePoint out of the box performance boosters
  3. Track bottlenecks while using the SharePoint Developer Dashboard
  4. Track bottlenecks while using firebug
  5. Track bottlenecks while using Ants Performance Profiler
  6. SharePoint API considerations and best practices
    ….

Track bottlenecks while using Ants Performance Profiler?

What is Ants Performance Profiler?
from red-gate.com: ANTS Performance Profiler’s lightning-fast .NET code profiling, integrated SQL and File I/O analysis, and powerful visualizations give you the most complete picture of your application’s performance. Line-level timings provide the precise informationneeded to zero in on problem code, while the intuitive interface means you can be up and running in minutes.
How do I install it on my server?
Very easy, download the latest free trial version of the tool from their download page:
http://www.red-gate.com/products/dotnet-development/ants-performance-profiler/download-b
 
How do I run it agains my SharePoint web application?

This is the difficult part, because
ANTS Performance Profiler does not support SharePoint 2010!
A workaround :

    • Open the IIS applicationHost configuration file.  By default, this is located in C:\Windows\system32\inetsrv\config\applicationHost.config
    • In the <globalModules> element, find the SharePoint14Module and add in the preCondition value before SharePoint Central Administration the following value: RGTestAppPool;

This sets a precondition allowing ANTS Performance Profiler to load the SharePoint server DLL. ANTS Performance Profiler will now be able to profile code on the SharePoint server.
From Profiling SharePoint 2010

More information about Ants Performance Profiler and SharePoint 2010 can be found here:
Froml Profiling SharePoint
More information:
VN:F [1.9.22_1171]
Rating: 9.0/10 (2 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)
SharePoint 2010 – The Performance Guide – Part 5 – Track bottlenecks while using Ants Performance Profiler, 9.0 out of 10 based on 2 ratings