Skip Ribbon Commands
Skip to main content
Home
February 04
How to Enable the Developer Dashboard in SharePoint 2010

What is the developer dashboard you may say? Well – the developer dashboard in SharePoint gives developers the ability to monitor how well their code base is performing – on a page by page basis. For instance – when enabled, at the bottom of every page you'll see a report of all the custom code that has ran on that page, as well as how long it took to run. This becomes very valuable information especially when querying SharePoint content. You may have several web parts on one page all querying information from across your Farm, and the SharePoint developer dashboard helps you know how well each performs, which can help you identify if one is becoming a bottle neck for your whole page.

 

Notice this example (the report always shows at the bottom of the master page):

 

 

The report shows the following information:

 

  1. What controls loaded and how long each took to load
  2. What specific database queries executed and the execution time of each
  3. Events that were fired during the page load
  4. Order of the page lifecycle and time during each stage

 

How to Programmatically Activate the SharePoint Developer Dashboard

 

 

Via Command Prompt

 

  1. Create a new console application visual studio project, and in Program.cs, add the following code:


    SPPerformanceMonitor perfmon = SPFarm.Local.PerformanceMonitor;

    perfmon.DeveloperDashboardLevel = SPPerformanceMonitoringLevel.On;

    perfmon.Update();

  2. Ensure that .NET version 3.5 is specified (SP 2010 is not yet .NET 4.0 compatible)




  3. Also – in project properties Build tab, ensure "Any CPU" is specified (defaults to x86, but SharePoint 2010 is x64 only)




  4. Build, Execute, and Enjoy!

 

 

Via Power Shell

 

$snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}
if ($snapin -eq $null) {

Write-Host "Loading SharePoint Powershell Snapin"
Add-PSSnapin "Microsoft.SharePoint.Powershell"

}
$farm = Get-SPFarm
$perfmon = $farm.PerformanceMonitor
$level = [Microsoft.SharePoint.Administration.SPPerformanceMonitoringLevel]::On
$perfmon.DeveloperDashboardLevel = $level
$perfmon.Update();
Write-Host "Sucess"

 

 

Cheers!

 

Phil

February 04
Visio Graphics Services 101, in SharePoint 2010

This post was published to SharePoint Happenings - Sha... at 9:11:28 AM 10/19/2009

Visio Graphics Services 101, in SharePoint 2010

 

 

Have a bunch of Visio diagrams floating around your IT department, showing network configurations and/or server configuration? Well – now is the time to bring those Visio diagrams to LIFE!

 

With SharePoint 2010 Visio Graphic Services, you can tie your Visio diagrams into backend data, and then render that diagram over the browser within a SharePoint site. This is a great way to build IT dashboards of server performance or other statuses. Notice the example below:

 

 

Now this is obviously a very generic example – but you'll notice that this SharePoint site has a Visio Web Access web part within it that is rendering a Visio diagram showing server performance. What makes this really compelling is the data within the diagram is not hard coded, but is rather pulling it out of a backend data source – in this case a SharePoint list. Keep reading to see how I went about building this dashboard…

 

Steps to Create a Visio Graphics Services Dashboard in SharePoint

 

Start with your Data Source. I just created a quick SharePoint list that contains my data. This could be a SQL table, Access database, web service, etc. In my case it would be easy to have a process that every few minutes could update this list, or you could manually update it. Whatever works best for you.

 

Notice I created a custom list with four columns, Server Name, CPU, Memory, and Network Util. These are just a few basic server metrics to the sake of my walkthrough. Replicate something similar:

 

 

Now that you have a data source, create a new Visio 2010 diagram. In my case I used the Enterprise Application Visio template:

 

 

Once the new diagram loads, click Link Data to Shapes:

 

 

Choose your data source location. In my case this is a Microsoft Windows SharePoint Services list:

 

 

Type the URL to your SharePoint site:

 

 

And specify the SharePoint list that contains your data:

 

 

Click Finish:

 

 

After you setup the connection, you'll notice your SharePoint list data at the bottom of the diagram:

 

 

Click on a row, and Drag and Drop the row onto the diagram surface:

 

 

The next thing we need to do is customize what data we want rendered, as well as setup some charts. Right click on one of the server diagrams and choose Edit Data Graphic:

 

 

Within this Edit dialog, you can customize what fields in the SharePoint list to render, where you want them rendered (Position), as well as rendering format (chart, text, font, color, etc). In my case I changed the "Name" field to my CPU field:

 

 

Then I changed the Displayed As drop down to speedometer:

 

 

Click ok to unit test your changes. Notice it pulls the data from the SharePoint list:

 

 

To add more columns, Edit the Data Graphic again and click the New Item button. Specify the field in the SharePoint list, as well as your rendering preferences:

 

 

Notice you can also specify the data elements position around the object:

 

 

Lastly, you can add a Legend if you wish:

 

 

When you're done configuring you diagram and you're ready to publish the diagram into SharePoint, click the Blue tab:

 

 

On the Home page, click Share and then Publish to Visio Services:

 

 

Click Save As, and notice the file type is "Web Drawing" with a vdw extension. Vsd extensions won't work, so make sure you publish the web drawing format and not Visio diagram format:

 

 

First, upload that VDW file into a document library in SharePoint. Next, find a SharePoint page you want to add the Visio Graphics Services web part onto:

 

 

Once you get the web part on the page, open the tool pane and browse out to the document library you uploaded the Visio diagram into:

 

 

 

DONE!

 

 

 

Phil

January 22
Microsoft Reources SharePoint 2010

Check out the latest Evaluation Guide and Whitepapers for SharePoint 2010 beta directly from Microsoft:

SharePoint 2010 Beta - Overview Evaluation Guide
This guide is designed to give you a solid understanding of the design goals and feature set for Microsoft SharePoint 2010 and a familiarity with the product implementation. It provides an overview of the solutions and benefits provided by SharePoint 2010, as well as a tour of the product’s main feature areas.

Collaboration without compromise - SharePoint and Office 2010
Use this white paper to learn about the value of deploying the latest and greatest of SharePoint and Office for everyday business scenarios.

January 21
Why SharePoint 2010?

 

SharePoint 2010 Benefits Overview
​SharePoint 2010 is the business collaboration platform that enables you to connect and empower people through formal and informal business communities, within the enterprise and beyond, and to manage content throughout the information lifecycle. Whether deployed on-premises or as hosted services, SharePoint’s integrated capabilities are enhanced by search technologies and enable you to rapidly respond to changing business needs by making data-driven decisions and by deploying customized solutions quickly and securely. The consolidation of collaboration solutions onto SharePoint 2010 makes it possible to cut costs by lowering training and maintenance expenses and increasing IT productivity, all within a governable and compliant platform.

Connect and Empower People
​Making people more productive is a direct result of enabling them to access resources and knowledge regardless of where they are and what device they use, through a user experience optimized for usability and adoption.  Learn more

 Cut costs with a Unified Infrastructure
​Driving cost efficiencies and accomplishing more with the same resources is possible through the consolidation of all the key business collaboration solutions into SharePoint 2010 and using this common platform to deploy solutions for your intranet, extranet, or for your Internet web presence.  Learn more

Rapidly Respond to Business Needs
​When time-to-market is key, SharePoint 2010 enables people to customize the out-of-box platform and deploy solutions that enable them to address specific business requirements quickly and in a secure manner.  Learn more

January 21
Get SharePoint 2010 Up and Running

 

So you want to get SharePoint up and running on your laptop or desktop? There is no need for you to have to go figure this out on your own since we have already done all the work for and figured out the options we have available to us.
 
SharePoint requires a 64 bit machine, there is no way to get around this. You cannot run it in Virtual PC or XP Mode.
 
Two options:

1. Boot to Windows Server 2008 R2

  • Native Physical Boot
  • Native VHD Boot
  • Install SharePoint Locally (Recommended)
  • Hyper-V Run SharePoint Virtually
    • SharePoint non-beta bits

2. Boot to Windows 7 Enterprise/Ultimate 64bit 

  • Native Physical Boot
  • Native VHD Boot
  • Install SharePoint Locally
Memory Recommendations:
 
You have to have atleast 4 GBs of RAM, do not bother trying to run this without atleast 4 GBs of RAM.
 
I have two machines that I am running it on, one has 4GBs of RAM and one has 8GB of RAM. I am choosing to run the much lighter Windows Foundation on the 4 GB machine and it workds very smoothly. I am running SharePoint in a Virtual Machine as well as local physicall installation on the 8GB machine and the virtual machines can still be slow at times but the local install it is very quick and works well.
 
*Note: Before going and asking for memory upgrades and all that, I would recommend starting with the Foundations version and logging some hours there first, not every has to have the full blown SharePoint Server version right now.
 
Get the Trial SharePoint foundations here
Get the Trial SharePoint Server Beta here
 
Instructions for getting it installed on windows 7 (follow them to the letter or suffer ALSO !!READ THE ENTIRE ARTICLE AS WELL AS THE COMMENTS FIRST!!) here
 
Here is another post that helped me get up and running on Windows 7

 

 

 ‭(Hidden)‬ Blog Tools

 
 

 About this blog

 
About this blog
Welcome to SharePoint Blogs. Use this space to provide a brief message about this blog or the owners. To edit this content, click on the menu for this web part and select "Modify Shared Web Part".