Silverlight Viewmodel performance profiling.

Code profiling for .NET Developers

Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley

Silverlight Viewmodel performance profiling.

Postby ravisk » Wed Sep 28, 2011 1:21 pm

I am using ANTS performance profiler for Silverlight browser application. The application follows MVVM design pattern and has Viewmodels for every view (.xaml). If I am profiling this, I am able to only view the Hot paths in View code behind (xaml.cs) files and ANTS performance profiler does not show the ViewModel code for hot paths.

Is there anything that needs to be done in order to see hot paths of ViewModels?
ravisk
 
Posts: 1
Joined: Wed Sep 28, 2011 1:10 pm

Postby Brian Donahue » Wed Sep 28, 2011 1:36 pm

Hello,

If I understand correctly, the basic problem is that you don't see source code for your ViewModels, correct? And you should see methods that correspond to the ViewModel objects' code in the all methods grid, hopefully.

It's probably something to do with the PDBs, as usual. If there is no debugging information available for the module, then ANTS Performance Profiler will not attempt to find the source code for it.

As far as I can tell, Silverlight XAPs are special in that VS does not embed the PDB debugging information into the XAP: you have to manually open it (in WinZip or something) and add the PDBs produced for all of your modules. Then it should be able to locate the source code.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 0 guests