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 1 – Why is performance important?

  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
    ….

Why is performance important?

The success of the web performance movement shows that there is increasing interest and value in fast websites. That faster websites lead to more revenue and reduced costs is a well proven fact today. So being exceptionally fast is becoming the dogma for developing (SharePoint) web applications and solutions.

As we want to be exceptionally fast this means that our pages have to load in less than two seconds (based on forrester research) to exceed user expectations. If we want to apply this rule of thumb, we need to ask ourselves:
How can we improve the performance of our SharePoint sites? 

A blog post called “The Importance of Website Performance” by Louis Lazaris contains a very nice summary of very good articles about why web site speed matters:

I hope this series can assist you while improving the performance of your SharePoint solutions!

Idea’s and comment are more than welcome,
Hope it helps!

Tom

VN:F [1.9.22_1171]
Rating: 9.7/10 (3 votes cast)
VN:F [1.9.22_1171]
Rating: +2 (from 2 votes)

SharePoint 2010 – The Performance Guide – Part 3 – Track bottlenecks while using the SharePoint Developer Dashboard

Track bottlenecks while using the SharePoint Developer Dashboard ?

As SharePoint developers we aren’t only responsible for creating the functionality that is required, but we are also responsible for the overall quality of the solution we build. This means an ergonomic fluent user interface, code that is suitable for changes and in my opinion one of the most important aspects, a good performance. Most of these topics are described in white papers, best practices and millions of books and blog posts… but wouldn’t it be a pleasure if it was already in the platform? Yes, indeed!

SPMonitoredScope

That is why the SharePoint team provided us with the developer dashboard and the SPMonitoredScope class! I’ve already written a blog post concerning the how and the what of the developer dashboard here: http://bit.ly/yKmBSR

Custom master page

When you are using a custom master page and not the out-of-the-box v4 master page the controls that are rendering the dashboard aren’t available. But it is allowed to provide these controls in your custom master page in order to benefit from the functionality it contains.

First of all you need to provide the correct assemblies in your master page.
Using the Developer Dashboard: http://msdn.microsoft.com/en-us/library/ff512745.aspx

Anonymous access

Waldek Mastykarz has written an excellent blogpost about this:
http://blog.mastykarz.nl/enable-developer-dashboard-anonymous-users/

Hope it helps
Tom

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)