title: Silverlight Memory Usage
body: <p>Is there a way to measure the current memory usage of the silverlight plug-in from within the client side C# code?</p>
  
  <p>I am isolating a memory leak and it would be good to know the current memory usage of the plug-in.</p>
  
  <p>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.</p>
  
  <hr>
  
  <p>As I mentioned above,</p>
  
  <p><em>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.</em></p>
  
  <p>So I am guessing that there isn't a way to do this?</p>
  
  <p>In winforms (and WPF probably) I believe this is possible, but perhaps the stripped back nature of silverlight has excluded this functionality?</p>