As stated in CLR via C#, "When CLR initializes, it selects a budget size for each generation.". It assumes 256KB for Gen0, 2MB for Gen1, 10MB for Gen2.(not sure if this includes Large Object Heap)
This budget must, ofcourse, be getting increased as more objects are created and as the size of the heap increases.
I know about GC.GetTotalMemory() method which returns the total memory that has been consumed, but it gives no information about per generation consumption.
Is there a way to get the heap size allocated to each generation?