Constant DOTNET_GC_COLLECTIONS
pub const DOTNET_GC_COLLECTIONS: &'static str;Expand description
§Description
The number of garbage collections that have occurred since the process has started.
§Notes
Meter name: System.Runtime; Added in: .NET 9.0.
This metric uses the GC.CollectionCount(int generation) API to calculate exclusive collections per generation
§Metadata
| Instrument: | counter |
| Unit: | {collection} |
| Status: | Stable |
§Attributes
| Name | Requirement |
|---|---|
crate::attribute::DOTNET_GC_HEAP_GENERATION | Required |