#668 – GetTotalMemory Indicates How Much Memory You’ve Allocated

You can call the GC.GetTotalMemory function to find out the total # bytes you’ve allocated so far on the managed heap. Note that this number does not include other memory that your process may have allocated, including things like memory allocated in unmanaged code.