title: Is there a way to retrieve a C# app's current memory usage?
body: <p>I am automating some profiling tasks and want to log heap space and generation sizes real-time.  The <a href="http://msdn.microsoft.com/en-us/library/bb384547.aspx" rel="noreferrer">profiling API</a> seems awfully complicated for what I need, and it seems to listen in on individual allocations and collections, which isn't that important to me.  Profiling tools are a great help of course, but I was looking for a more flexible, programmable interface.</p>