Red Gate forums :: View topic - Unable to Profile Silverlight 4 applications
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler 7
ANTS Memory Profiler 7 forum

Unable to Profile Silverlight 4 applications

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
inder_gujral



Joined: 31 Mar 2011
Posts: 1

PostPosted: Thu Mar 31, 2011 6:27 am    Post subject: Unable to Profile Silverlight 4 applications Reply with quote

Hi,

In the release notes of Memory Profile 7, the last point says
"The snapshot API does not work with Silverlight applications, due to security restrictions in Silverlight." but in the supported features it says "Silverlight 4 browser applications".

So if snapshot is not working , then how to find the leaks in memory ?

Can we profile silverlight 4 applications and if yes then how?

Are there any examples specifically for silverlight profiling because when I try to do it through the HTML file , nothing happens.

Thanks
Inderpreet
Back to top
View user's profile Send private message
dom.smith



Joined: 03 Jun 2010
Posts: 94
Location: Cambridge, UK

PostPosted: Thu Mar 31, 2011 9:42 am    Post subject: Reply with quote

Hi Inderpreet,

Yes, you can profile Silverlight 4 applications.

The snapshot API is when you call RedGate.MemoryProfiler.Snapshot.TakeSnapshot() from within your code. RedGate.MemoryProfiler.Snapshot.TakeSnapshot() does not work for Silverlight applications.

To profile Silverlight applications, you use the Take Snapshot button in the ANTS Memory Profiler GUI instead:

1. Use Task Manager to kill all iexplore.exe process that are already running.

2. Set up your Silverlight 4 browser application as described at http://www.red-gate.com/supportcenter/Content?p=ANTS%20Memory%20Profiler&c=ANTS_Memory_Profiler/help/7.0/amp_setup_silverlight.htm&toc=ANTS_Memory_Profiler/help/7.0/toc1286213.htm
When Internet Explorer starts, your Silverlight application is shown.

3. Use the Take Snapshot button to take your memory snapshots, as described at http://www.red-gate.com/supportcenter/Content?p=ANTS%20Memory%20Profiler&c=ANTS_Memory_Profiler/help/7.0/amp_find_leak.htm&toc=ANTS_Memory_Profiler/help/7.0/toc1286225.htm

Hope that helps,

Dom.
_________________
Dominic Smith,
Project Manager,
Red Gate Software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group