是否存在Silverlight内存分析器?

时间:2020-03-06 14:57:51  来源:igfitidea点击:

CLR分析器似乎不适用于Silverlight CLR。是否存在另一个内存分析器?

解决方案

似乎还没有一个可用。但是,按照此论坛主题中的建议,我们可以将Silverlight应用程序转换为WPF应用程序和配置文件,以便:

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.

这不是一个最佳的解决方案,但听起来像是目前的最佳选择...

更新:刚刚看到有关XPerf的博客文章,该文章是Silverlight的cpu采样器。不完全是内存分析器,而是测试Silverlight应用程序性能的好工具...

尽管它不是具有完善的GUI的完整分析器,但是我们可以使用Windbg + SOS调试Silverlight应用程序,这将需要大量的手动工作,但随后我们可以遍历托管堆。

尝试使用Atologic SilverProfiler。可在www.atologic.com上获得。

这是使用Xperf在Silverlight中进行的内存分析。

获取GC信息

VS2010 / SL4现在有一个探查器检出:

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

使用Silverlight间谍
它具有内置的内存探查器

试试这个,它非常有用:

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

布鲁诺。