GCMemoryInfo.HeapSizeBytes Property

Definition

Gets the total heap size when the last garbage collection occurred.

C#
public long HeapSizeBytes { get; }

Property Value

The total heap size, in bytes, when the last garbage collection occurred.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10