pub const DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE: &str = "dotnet.gc.last_collection.heap.fragmentation.size";Expand description
§Description
The heap fragmentation, as observed during the latest garbage collection.
§Notes
Meter name: System.Runtime; Added in: .NET 9.0.
This metric reports the same values as calling GC.GetGCMemoryInfo().GenerationInfo.FragmentationAfterBytes
§Metadata
| Instrument: | updowncounter |
| Unit: | By |
| Status: | Stable |
§Attributes
| Name | Requirement |
|---|---|
crate::attribute::DOTNET_GC_HEAP_GENERATION | Required |