开发者

Silverlight Memory Usage

Is there a way to measure the current memory usage of the silverlight plug-in from within the client side C# code?

I am isolating a memory leak and it would be good to know the current memory usage of the plug-in.

For instance it could be logged to a file before I clicked a button that it was using '60 mb' and after I clicked the button it was using '70 mb' etc. I could then gradually add in controls and use this technique to quantify the leak.


As I mentioned above,

I am more loo开发者_开发百科king for a C# silverlight library call that I can call within my code to get the current memory usage at any particular point in time.

So I am guessing that there isn't a way to do this?

In winforms (and WPF probably) I believe this is possible, but perhaps the stripped back nature of silverlight has excluded this functionality?


GC.GetTotalMemory might help you.


This can help you: Analyzing Silverlight Memory Usage

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜