Memory profiler for silverlight

不问归期 提交于 2019-12-21 20:35:45

问题


Do you have any suggestion/idea of Memory profiler for Silverlight?


回答1:


You can use the standard memory profiling tools (memory GC and lifetime) in Visual Studio 2010 - but only the Ultimate and Premium versions. The support is only for command line profiling, so the basics go:

  1. Open a Visual Studio command prompt
  2. VSPerfClrEnv /globalsamplegclife
  3. VSPerfCmd -start:sample -output:somefile.vsp
  4. VSPerfCmd -launch:"c:\Program Files (x86)\Internet Explorer\iexplore.exe" -args:""
  5. VSPerfCmd -globalon
  6. VSPerfCmd -shutdown
  7. VSPerfClrEnv /off

The generated VSP will include memory statistics.

You can find more detailed information at: http://www.nachmore.com/2010/profiling-silverlight-4-with-visual-studio-2010/




回答2:


ANTS Memory Profiler 6 now includes Silverlight 4 profiling support:

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

(Disclaimer: I work for Red Gate and am biased as hell.)

Hope that helps!

Bart



来源:https://stackoverflow.com/questions/3568494/memory-profiler-for-silverlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!