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 looking 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With