There are three Modes for developer dashboard (DD)
•On: Means the dashboard starts collecting the statistics and the same is displayed at the bottom of the page(for SharePoint 2010)
•Off (default): No statistics are collected
•OnDemand: An icon is displayed at the top right corner of the page. On clicking the icon, the statistics are shown at the bottom of the page (for SharePoint 2010) or in a new window(for SharePoint 2013)
Different ways you can configure the DD
Powershell
$dd
= [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings
$dd.DisplayLevel = 'OnDemand'
$dd.TraceEnabled = $true
$dd.Update()
$dd.DisplayLevel = 'OnDemand'
$dd.TraceEnabled = $true
$dd.Update()
Stsadm
stsadm
-o setproperty
-pn
developer-dashboard -pv On
Object
Model
SPPerformanceMonitor pm = SPFarm.Local.PerformanceMonitor;
pm.DeveloperDashboardLevel = SPPerformanceMonitoringLevel.Off;
pm.Update()
pm.DeveloperDashboardLevel = SPPerformanceMonitoringLevel.Off;
pm.Update()
No comments:
Post a Comment