There are several ways to enable the developer dashboard in SharePoint 2010 and 2013. I always prefer the PowerShell method, but for the sake of completeness I will show several options here.
Notice that there are the following options for the Developer Dashboard:
The dashboard can be enabled for your SharePoint 2010 or 2013 farm by executing the following commands in a SharePoint PowerShell window:
$d = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings$d.DisplayLevel = 'OnDemand'$d.TraceEnabled = $true$d.Update()
Another option is to execute the following STSADM command. STSADM is only still provided for backwards compatibility and shouldn't be used anymore.
stsadm -o setproperty -pn developer-dashboard -pv OnDemand
If you wish to configure it through program code, use the following code snippet:
More information on how to use the dashboard can be found in the excellent article at