mgoldin's blog

A blog about Profiler in Microsoft Visual Studio.

VS2010 SP1: Silverlight 4 profiling from Visual Studio UI

VS2010 SP1: Silverlight 4 profiling from Visual Studio UI

Rate This
  • Comments 3

 

If you install recently published VS2010 SP1 Beta, you can discover that VS Profiler team enriched Silverlight profiling user experience. Previously I published few posts about VS2010 usage for those purposes, either through VS Profiler command line tools or VS2010 UI. Both approaches led you to the final results or figuring out the bottlenecks of your Silverlight application, but they require number of manual steps to be done.

In VS2010 SP1 however Silverlight projects are fully recognized by VS Profiler, and you can conduct your performance investigations much easier.

For example, you might use the Silverlight Text Editor Sample, and open this project in VS2010 SP1:

image

Now, if you wish to create a performance session for this project, you can do it in a usual way through Performance Wizard:

image

You will see your project in the list of possible targets (it was not there before the final integration of Silverlight projects and VS Profiler), and you can select it there and proceed with the Wizard that creates and starts a performance session for you:

image

When you close your application – the session is over and profiling results are presented so you can analyze the data:

image

image

Enjoy!

Comments
  • Its good that we have a wizard

    avikas.blogspot.com/.../performance-wizard-for-silverlight-with.html

  • I just wonder why the IE crashes and very little data is collected.

  • No joy for me.  Is this compatible with RIA Services?  When I launch, I choose the Silverlight project from the wizard, and I immediately get an unhandled exception:

    "the Provided URI scheme 'file' is invalid; expected 'http".  It's thrown from System.ServiceModel.Channels.transportFactory.  I know that you can get that error if you try to start a RIA services app by just startign the XAP file.  Is the profiler doing something similar?

Page 1 of 1 (3 items)
Leave a Comment
  • Please add 8 and 1 and type the answer here:
  • Post