Red Gate forums :: View topic - Profilling Silverlight with differents XAPs (Prism + MEF)
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

Profilling Silverlight with differents XAPs (Prism + MEF)

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



Joined: 29 Feb 2012
Posts: 2

PostPosted: Wed Feb 29, 2012 9:42 pm    Post subject: Profilling Silverlight with differents XAPs (Prism + MEF) Reply with quote

Hi,

I'm having problems with memory leaks in my Silverlight application and I'm interested on ANTS Memory Profiler. The only problem is: my application uses PRISM + MEF, and I have many modules, each one is as different xap.

Will I be able to profile my application using ANTS?

I have a mainmodule.xap wich I can profile trough ANTS, but this first module loads the other .xaps (where my real problems are ocurring). I mean, I have a module1.xap, module2.xap, module3.xap and I need to profile those.

How can I do it using ANTS? Or it is not possible at all?

Thanks.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6667

PostPosted: Thu Mar 01, 2012 4:05 pm    Post subject: Reply with quote

ANTS Memory Profiler is process-oriented - so if all of the DLLS contained in all the XAPs are hosted in the same process, you will be profiling them all together. If not, you would need to launch additional instances of Memory Profiler.
Back to top
View user's profile Send private message
iulo



Joined: 29 Feb 2012
Posts: 2

PostPosted: Thu Mar 01, 2012 4:07 pm    Post subject: Reply with quote

So, if all the xaps are loaded and executed in the same slllauncher.exe or iexplore.exe process, I should be able to profile all the xaps?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6667

PostPosted: Thu Mar 01, 2012 7:01 pm    Post subject: Reply with quote

Yes, you will profile all the XAPs!
Back to top
View user's profile Send private message
anny_mumu



Joined: 28 Mar 2012
Posts: 4

PostPosted: Wed Mar 28, 2012 8:12 am    Post subject: Re: Reply with quote

Brian Donahue wrote:
Yes, you will profile all the XAPs!



I meet the same problem like that.

Ants Log like "28 Mar 2012 15:03:20.666 [16] WARN RedGate.Profiler.Engine.Startup.Counters.WindowsPerfCounter - Error while trying to read performance counter data
System.InvalidOperationException: 指定的类别中不存在实例“sllauncher”。
在 System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName)
在 System.Diagnostics.PerformanceCounter.NextSample()
在 ???.???.NextSample()"

How can i do ?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6667

PostPosted: Wed Mar 28, 2012 9:16 am    Post subject: Reply with quote

Actually, this is an erro rather than a question about usage. Something is wrong with the performance counters, I reckon, so you may want to rebuild them. Here are the instructions.

http://www.red-gate.com/supportcenter/content/knowledgebase/ANTS_Performance_Profiler/KB200810000316

If this does not work, please email our support address - we will need to open a support call.
Back to top
View user's profile Send private message
anny_mumu



Joined: 28 Mar 2012
Posts: 4

PostPosted: Wed Mar 28, 2012 10:46 am    Post subject: Reply with quote

I just trial 7.3
I gess the reason that maybe my system is win7 64bit?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6667

PostPosted: Wed Mar 28, 2012 2:07 pm    Post subject: Reply with quote

No, that's fine. Profiler works with 64-bit. The Windows configuration is broken. The performance counters probably need to be rebuilt. I don't know why, but Windows likes to scramble itself up from time to time.
Back to top
View user's profile Send private message
anny_mumu



Joined: 28 Mar 2012
Posts: 4

PostPosted: Thu Mar 29, 2012 3:44 am    Post subject: Reply with quote

I try your tips but error still happened like that
http://ww3.sinaimg.cn/bmiddle/71e54385gw1drgh0sgcikg.gif
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6667

PostPosted: Thu Mar 29, 2012 9:17 am    Post subject: Reply with quote

I have logged a support incident for you and you will get an email from us. This is probably not specific to MEF, XAP or any other three-letter acronym, it looks like a general type of failure.
Back to top
View user's profile Send private message
anny_mumu



Joined: 28 Mar 2012
Posts: 4

PostPosted: Thu Mar 29, 2012 10:25 am    Post subject: Reply with quote

thanks , i had reply the mail. to except an anwser.
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