in

Dot Net Mafia

Group site for developer blogs dealing with (usually) .NET, SharePoint 2013, SharePoint 2010, Office 365, SharePoint Online, and other Microsoft products, as well as some discussion of general programming related concepts.

This Blog

Syndication

Archives

Corey Roth [MVP]

A SharePoint MVP bringing you the latest time saving tips for SharePoint 2013, Office 365 / SharePoint Online and Visual Studio 2013.

Turning on the Developer Dashboard in SharePoint 2010

The developer dashboard is a great new feature that developers can use to aid them in tuning performance on a page.  This new functionality adds information to the bottom of any page in SharePoint that displays performance information and what SQL queries were executed to display the page.  To my knowledge, there is currently no way in the UI to turn this on, so you can do this with a quick x64 console application.  This is soon to become a quite popular code snippet I am sure.

SPPerformanceMonitor performanceMonitor = SPFarm.Local.PerformanceMonitor;

performanceMonitor.DeveloperDashboardLevel = SPPerformanceMonitoringLevel.On;

All you need is those two lines of code.  When you are done with it, simply set the monitoring level to Off.

Comments

 

Jaap Vossers said:

I wonder if this can be done using the new Client Object Model. If so, that would presumable be a simple but effective bit of javascript.

October 30, 2009 3:11 PM
 

CoreyRoth said:

That's a very good point.  I need to check the client OM and see if those objects are available.

October 30, 2009 3:30 PM
 

Praveen said:

Nice,

Find the detail notes on the developer dashboard in my point of view, this also may help.

praveenbattula.blogspot.com/.../developer-dashboard-in-sharepoint-2010.html

thanks

-Praveen

May 10, 2010 11:12 PM
 

Sharepoint 2010 Blog – Luis Valencia » Using SPMonitoredScope said:

Pingback from  Sharepoint 2010 Blog – Luis Valencia » Using SPMonitoredScope

August 19, 2010 10:28 PM

Leave a Comment

(required)  
(optional)
(required)  
Add

About CoreyRoth

Corey Roth is an independent SharePoint consultant specializing in ECM, Apps, and Search.
2015 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems