_gcTimeCounter??=newPollingCounter("time-in-gc",this,()=>GC.GetLastGCPercentTimeInGC()){DisplayName="% Time in GC since last GC",DisplayUnits="%"};
_totalGcTimeCounter??=newIncrementingPollingCounter("total-time-in-gc",this,()=>GC.GetTotalPauseDuration().TotalMilliseconds){DisplayName="Time spent in GC",DisplayUnits="ms"};
_totalGcPauseTimeCounter??=newIncrementingPollingCounter("total-pause-time-by-gc",this,()=>GC.GetTotalPauseDuration().TotalMilliseconds){DisplayName="Time paused by GC",DisplayUnits="ms"};