Welcome!

Silverlight Authors: Michael Sheehan, Hovhannes Avoyan, Yeshim Deniz, Maureen O'Gara, Mark O'Neill

Related Topics: .NET, Silverlight

.NET: Blog Feed Post

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

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.

More Stories By Corey Roth

Corey Roth is a consultant at Stonebridge specializing in SharePoint for clients in the energy sector. He has more than ten years of experience delivering solutions in the energy, travel, advertising and consumer electronics verticals.

Corey specializes in delivering ECM and search solutions to clients using SharePoint. Corey has always focused on rapid adoption of new Microsoft technologies including Visual Studio 2010, .NET Framework 4.0, and Silverlight.

He is a member of the .NET Mafia (www.dotnetmafia.com) where he blogs about the latest technology and SharePoint. He is dedicated to the community and speaks regularly at user groups and SharePoint Saturdays.