Does a Silverlight memory profiler exist?

2020-02-10 06:03发布

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

10条回答
Rolldiameter
2楼-- · 2020-02-10 06:48
甜甜的少女心
4楼-- · 2020-02-10 06:56

I use free XTE Profiler which also works with Silverlight Standard and Out of Browser applications. Shows live memory usage as well.

查看更多
来,给爷笑一个
5楼-- · 2020-02-10 06:57

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:

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

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

查看更多
相关推荐>>
6楼-- · 2020-02-10 06:57

Though not a full blown profiler with a yummy GUI, you could use Windbg + SOS to debug your silverlight app, it would require a lot of manual work, but you can then walk your managed heap.

查看更多
做自己的国王
7楼-- · 2020-02-10 06:57

Use Silverlight Spy
It has a Memory Profiler built in
alt text

查看更多
登录 后发表回答