如何分析Silverlight应用程序?
他们是否有任何支持Silverlight的探查器?我尝试过ANTS(3.1版)但没有成功?版本4支持吗?我可以尝试其他产品吗?
更新
自从Silverlight 4发行以来,现在可以在SL应用程序上进行完整的配置...请查看有关该主题的本文
At PDC, I announced that Silverlight 4 came with the new CoreCLR capability of being profile-able by the VS2010 profilers: this means that for the first time, we give you the power to profile the managed and native code (user or platform) used by a Silverlight application. woohoo. kudos to the CLR team. Sidenote: From silverlight 1-3, one could only use things like xperf (see XPerf: A CPU Sampler for Silverlight) which is very powerful to see the layout/text/media/gfx/etc pipelines, but only gives the native callstack.)
从SilverLite(PDC视频,冰岛TechEd,VS2010,配置文件,Silverlight 4)
解决方案
回答
在此处提供XPerf和xperfview的安装:http://msdn.microsoft.com/zh-cn/library/cc305218.aspx
(1)启动样本
(2)xperf-在基础上
(3)稍等
(4)xperf和myprofile.etl
(5)完成后,设置符号路径:
set _NT_SYMBOL_PATH= srvC:\symbolshttp://msdl.microsoft.com/downloads/symbols
(6)xperfview myprofile.etl
(7)跟踪->加载符号
- 选择要查看的CPU图形区域
- 右键单击并选择摘要表
(8)接受使用符号的EULA,展开IExplore,展开agcore.dll或者顶级模块
回答
这是有关使用XPerf的详细博客条目。另外,请观看此视频(在PDC上)有关对Silverlight进行性能分析!!!
回答
AtoLogic SilverProfiler应该为我们工作。见http://www.atologic.com
回答
SL 4.0具有coreclr etw事件。应该能够使用XPERF和Perfmonitor和clr etw诊断异常,gc,线程和其他一些异常。我有关于此的博客。
使用Perfmonitor的FYI应该能够提供调用堆栈。
ETW仅在Windows中可用。
回答
尝试使用JetBrains dotTrace性能分析器。
详细说明如下:
http://confluence.jetbrains.net/display/NetProf/How+to+profile+silverlight+application
回答
Visual Studio 2010(带有Silverlight 4工具)附带了对Silverlight应用程序进行性能分析的命令行支持。
有关SL4分析的完整说明,请参见:http://www.nachmore.com/2010/profiling-silverlight-4-with-visual-studio-2010/