Is that "the sum of all objects allocated" or is it "amount of memory allocated from the operating system for storing objects". Or is it something else?
I think it is memory allocated from the OS, but would like a confirmation.
It depends on the Generation number. For Gen 0 it measures the max memory you can allocate:
MSDN quote :
Displays the maximum bytes that can be allocated in generation 0;
it does not indicate the current number of bytes allocated in generation 0.
For Gen 1 & 2 it measures the sum of all allocated objects because in these generations objects are actually promoted not allocated.
Displays the current number of bytes in generation 1;
this counter does not display the maximum size of generation 1.
Generation heap size measures the total allocated memory of the managed portion of all .NET objects currently in that particular garbage collection generation.
See this for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With