Saturday, March 12, 2011

Enabling/disabling the Dashboard with SharePoint 2010 Developer


Developer dashboard is not only for Developers, the administrators can also take good advantage of it. They can do quantitative analysis if their site is slow then how much slow and when the users started raising complaints.
There are three in which this DD can remain:


1. OFF (which is by default)

2. ON - which turns it on all the time? It is generally not a good option as it causes performance overhead and turning it on would make all the Site Collection Admins to see it.

3. On Demand – It appears like a small button and site collection admins can turn it on any time they want. This is most feasible option.

To set it to On Demand, execute following power shell cadets:
$dd = [Microsoft.SharePoint.Administration.SPWebService]: ContentService.DeveloperDashboardSettings
$dd.DisplayLevel = ‘On Demand’
$dd.TraceEnabled = $true
$dd.Update ()


This is used throughout the space, so you can go see the top right corner of the site where the white button should appear. When you click that you should be able to see the dashboard developer. 

Display Level can be:
$dd.DisplayLevel = ‘On Demand’
$dd.DisplayLevel = ‘On’
OR
$dd.DisplayLevel = ‘Off








SPONSORS:

No comments:

Post a Comment