Silverlight TV 57: Performance Tuning Your Apps

Sign in to queue

Description

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

 

 

 

Embed

Download

Download this episode

The Discussion

  • User profile image
    Kurt

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

  • User profile image
    martinmine

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

  • User profile image
    MikeCook

    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
  • User profile image
    Nereus

    great

  • User profile image
    Olivier​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?

  • User profile image
    akcajunqueen

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

     

  • User profile image
    MikeCook

    @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.

  • User profile image
    Shimoakki

    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.

Add Your 2 Cents