| Author |
Message |
iulo
Joined: 29 Feb 2012 Posts: 2
|
Posted: Wed Feb 29, 2012 9:42 pm Post subject: Profilling Silverlight with differents XAPs (Prism + MEF) |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6345 Location: Red Gate Software
|
Posted: Thu Mar 01, 2012 4:05 pm Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
iulo
Joined: 29 Feb 2012 Posts: 2
|
Posted: Thu Mar 01, 2012 4:07 pm Post subject: |
|
|
| 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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6345 Location: Red Gate Software
|
Posted: Thu Mar 01, 2012 7:01 pm Post subject: |
|
|
Yes, you will profile all the XAPs! _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
anny_mumu
Joined: 28 Mar 2012 Posts: 4
|
Posted: Wed Mar 28, 2012 8:12 am Post subject: Re: |
|
|
| 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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6345 Location: Red Gate Software
|
Posted: Wed Mar 28, 2012 9:16 am Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
anny_mumu
Joined: 28 Mar 2012 Posts: 4
|
Posted: Wed Mar 28, 2012 10:46 am Post subject: |
|
|
I just trial 7.3
I gess the reason that maybe my system is win7 64bit? |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6345 Location: Red Gate Software
|
Posted: Wed Mar 28, 2012 2:07 pm Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
anny_mumu
Joined: 28 Mar 2012 Posts: 4
|
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6345 Location: Red Gate Software
|
Posted: Thu Mar 29, 2012 9:17 am Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
anny_mumu
Joined: 28 Mar 2012 Posts: 4
|
Posted: Thu Mar 29, 2012 10:25 am Post subject: |
|
|
| thanks , i had reply the mail. to except an anwser. |
|
| Back to top |
|
 |
|