Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
372 views
in Technique[技术] by (71.8m points)

profiling - How to profile a silverlight application?

Is their any profilers that support Silverlight? I have tried ANTS (Version 3.1) without any success? Does version 4 support it? Any other products I can try?

Updated since the release of Silverlight 4, it is now possible to do full profiling on SL applications... check out this article on the topic

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

From SilverLite (PDC video, TechEd Iceland, VS2010, profiling, Silverlight 4)

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Install XPerf and xperfview as available here: http://msdn.microsoft.com/en-us/library/cc305218.aspx

(1) Startup your sample

(2) xperf -on base

(3) wait for a bit

(4) xperf –d myprofile.etl

(5) when this is done, set your symbol path:

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

(6) xperfview myprofile.etl

(7) Trace -> Load Symbols

  • Select the area of the CPU graph that you want to see
  • Right-click and select Summary Table

(8) Accept the EULA for using symbols, expand IExplore, expand agcore.dll or whatever is your top module


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...