title: How do I see memory allocation in a given .NET application?
body: <p>I need to check how much memory is allocated in the heap. Is there a way to get this value programmatically with C#?</p>
  
  <p>I know about the <code>System.Runtime.InteropServices.Marshal.SizeOf(...)</code> but that only tells me the size of an object.</p>