难道一个Silverlight内存分析器存在吗?分析器、内存、存在、Silverlight

2023-09-04 00:07:58 作者:ぅ化骨绵掌

CLR探查似乎不使​​用Silverlight的CLR工作。有没有另一种内存分析器存在吗?

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

推荐答案

似乎没有为一个产品尚未推出。然而,随着建议在这个论坛主题,您可以将您的Silverlight应用程序一个WPF应用程序和配置文件:

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:

有没有工具,现在却作为一种解决方法,你可以很容易地创建一个桌面(WPF)版本的Silverlight客户端从同一个code群和一些调整(见苏格兰人的博客上这样的例子 - http://weblogs.asp.net/scottgu/pages/silverlight-tutorial-part-8-creating-a-digg-desktop-application-using-wpf.aspx)一旦你与这个工作,你可以运行任何性能分析器与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.

不是一个最佳的解决方案,但它听起来像是现在的最佳选择...

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

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

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...