.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Developer Dashboard in SharePoint 2010

Posted By:Sunil Yadav       Posted Date: August 25, 2010    Points: 5    Category: SharePoint    URL: http://www.dotnetspark.com  

This article is intended to provide an overview of Developer Dashboard, new feature addition to SPS 2010 diagnostics.
 

Developer Dashboard in SharePoint 2010

The developer dashboard is the new feature addition to SPS 2010 diagnostics. The Developer dashboard provides detailed information such as components

Generating load on the system, code that executed on the page, query execution time, function by function level trace, WebPart load time etc.

Developer Dashboard Modes


The below are the modes in the Developer Dashboard:
1.  On  :  Developer Dashboard is viewable on all pages that use the default master page.
2.  Off  :  Turns off the Developer Dashboard
3.  OnDemand : OnDemand mode allows the user to toggle the Dashboard on and off whenever required.

The Developer Dashboard is disabled by default. One can enable the Developer Dashboard with the help of following methods.

1.  Using STSAFM.EXE

STSADM.exe -o setproperty -pn developer-dashboard -pv OnDemand



2.  Using PowerShell

Open SharePoint 2010 Management Shell



Run following script on the Sharepoint 2010 Management Shell.

$devdashboard =[Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;

$devdashboard.DisplayLevel = 'OnDemand';

$devdashboard.Update() 


The below figure depicts the operation.



3.  Using Object Model

SPWebService service = SPWebService.ContentService;
service.DeveloperDashboardSettings.DisplayLevel = Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel.OnDemand;
service.Update();

Once you successfully enabled the Developer Dashboard, you will see a toggle button on the upper right corner of the page as shown below.
Since we have set the DisplayLevel property to OnDemand, toggle button can be use enable disable the Developer Dashboard.






Dashboard displaying the trace information, Query executed etc.




QueryText and call stack of the query executed.



References

http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=189
http://msdn.microsoft.com/en-us/library/ff512745.aspx

Cheers...!!!!!!!!

 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend