Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Silverlight TV 57: Performance Tuning Your Apps

27 minutes, 14 seconds


Right click “Save as…”

Application performance is a hot topic, and for good reason. User Experience is hugely important, but if your app is slow then everything degrades, including UX. In this episode, John talks to the Silverlight team's Mike Cook who shares several techniques that help tune Silverlight applications. With performance, it's all about knowing what tools to use and how to use them. Mike covers these topics and focuses on:

  • CPU Profiling in Visual Studio 2010
  • Memory Analysis
    o VMMap - 30,000 ft view of app memory
    o WinDbg + SOS Debug Extension - Managed memory analysis
    o XPerf Heap Instrumentation - Native memory analysis

You can find all of the links for the tools and information on how to use them in the relevant links listed below.

Relevant links:

Follow us on Twitter @SilverlightTV or on the web at http://silverlight.tv





Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
  • KurtKurt

    Mike Cook is great. I want to see more of this guy!

  • martinminemartinmine I eat C# for breakfast

    What about out-of-browser applications? Are we able to profile those using Visual Studio 2010?

  • Mike CookMikeCook Silverlight Performance

    Yes you can.  For out-of-browser applications instead of profiling iexplore.exe you'll need to profile sllauncher.exe (mine is located at "C:\Program Files (x86)\Microsoft Silverlight\sllauncher.exe").  Instead of passing the .html page as a command line argument, you'll pass the out-of-browser token for the application (this is the name of the folder your .exe lives in under "C:\Users\<username>\AppData\Local\Microsoft\Silverlight\OutOfBrowser") followed by the "/debug" switch.  So when you're finished it'll end up looking something like so:

    • What is the path to the full executable?
      • C:\Program Files (x86)\Microsoft Silverlight\sllauncher.exe
    • Command line arguements: 
      • 3800347859.testapp /debug
  • NereusNereus


  • OlivierGauthierOlivier​Gauthier

    I used Mike's technique to adress a memory leak in the heap. All my Outstanding memory allocations, when I drill down the Stack, end up to Wow64SystemServiceEx.
    I use a WCF service in my application, is that what this points to?

  • i want to dowload Silverlight but got lose along the instructions.


  • Mike CookMikeCook Silverlight Performance

    @OlivierGauthier: If you post a question with more detailed information about the stack in the Silverlight Performance Forum we can try to help you out.

  • Beau G. PalmquistShimoakki Dream and Pursue

    Hey Mike, if that's your laptop this is a shoutout to a fellow SC II player!  I noticed that icon down in your task bar haha!  Excellent tutorial and set of demos.  Thanks.

Remove this comment

Remove this thread


Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.