Does a Silverlight memory profiler exist?

坚强是说给别人听的谎言 提交于 2019-11-30 07:29:00

问题


CLR profiler does not seem to work with the Silverlight CLR. Does another memory profiler exist?


回答1:


Doesn't seem to be one available yet. However, as recommended in this forum thread, you can convert your Silverlight app to a WPF application and profile that:

There is no tool as of now but as a workaround you can easily create a desktop (WPF) version of your Silverlight client from the same code base and few tweaks (refer Scot's blog for an example on this - http://weblogs.asp.net/scottgu/pages/silverlight-tutorial-part-8-creating-a-digg-desktop-application-using-wpf.aspx) . Once you are done with this you can run any performance profiler that works with WPF.

Not an optimal solution, but it sounds like the best option for now...

Update: Just saw a blog post about XPerf which is a cpu sampler for Silverlight. Not exactly a memory profiler but a good tool for testing the performance of Silverlight apps...




回答2:


Here is memory profiling in silverlight using Xperf.

Get GC Information




回答3:


Try this one, it is very useful:

http://www.red-gate.com/products/ants_memory_profiler/index.htm

Bruno.




回答4:


VS2010/SL4 has a profiler now checkout:

http://www.nachmore.com/2010/profiling-silverlight-4-with-visual-studio-2010/

http://blogs.msdn.com/b/seema/archive/2010/01/28/pdc-vs2010-profiling-silverlight-4.aspx




回答5:


Though not a full blown profiler with a yummy GUI, you could use Windbg + SOS to debug your silverlight app, it would require a lot of manual work, but you can then walk your managed heap.




回答6:


Use Silverlight Spy
It has a Memory Profiler built in




回答7:


I use free XTE Profiler which also works with Silverlight Standard and Out of Browser applications. Shows live memory usage as well.




回答8:


.NET Memory Profiler starting from version 4.0 supports Silverlight profiling.

Highly recommend.




回答9:


Try using Atologic SilverProfiler. Available at www.atologic.com.




回答10:


Standalone CLR profiler has been updated to work with Silverlight so you don't need to have VS Premium/Ultimate.

David Broman's CLR Profiling API Blog: CLRProfiler V4 Released

UI isn't that great, but it works.



来源:https://stackoverflow.com/questions/156507/does-a-silverlight-memory-profiler-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!