首页 / 知识

关于配置文件:如何配置Silverlight应用程序?

2023-04-14 22:37:00

关于配置文件:如何配置Silverlight应用程序?

How to profile a silverlight application?

他们是否有任何支持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 –d myprofile.etl

(5)完成后,设置符号路径:

1
    set _NT_SYMBOL_PATH= srvC:\\symbolshttp://msdl.microsoft.com/downloads/symbols

(6)xperfview myprofile.etl

(7)跟踪->加载符号

  • 选择要查看的CPU图形区域
  • 右键单击并选择摘要表

(8)接受使用符号的EULA,展开IExplore,展开agcore.dll或您的顶级模块是什么


Visual Studio 2010(带有Silverlight 4工具)附带命令行支持,用于对Silverlight应用程序进行性能分析。

有关SL4的完整说明,请参见:http://www.nachmore.com/2010/profiling-silverlight-4-with-visual-studio-2010/


尝试使用JetBrains dotTrace性能分析器。
详细说明如下:
http://confluence.jetbrains.net/display/NetProf/如何配置Silverlight应用程序


我喜欢RedGate ANTS。我发现它是一个比dotTrace更好的分析器。


SL 4.0具有coreclr etw事件。应该能够使用XPERF和Perfmonitor和clr etw诊断异常,gc,线程和其他一些异常。我有关于此的博客。

使用Perfmonitor的

FYI应该能够提供调用堆栈。

ETW仅在Windows中可用。


AtoLogic SilverProfiler应该为您工作。参见http://www.atologic.com


这里是有关使用XPerf的详细博客条目。也请观看此视频(在PDC上),有关对Silverlight进行性能分析!!!


配置应用程序配置文件支持

最新内容

相关内容

猜你喜欢