public void UpdateMetrics() { if (_gcInfo.Enabled) { GcCpuRatio?.Set(_gcCpuRatio.CalculateConsumedRatio(GcCollectionSeconds)); GcPauseRatio?.Set(_gcPauseRatio.CalculateConsumedRatio(GcPauseSeconds)); } #if !NETSTANDARD2_1 AvailableMemory?.Set(GC.GetGCMemoryInfo().TotalAvailableMemoryBytes); #endif }
public void UpdateMetrics() { GcCpuRatio.Set(_gcCpuRatio.CalculateConsumedRatio(GcCollectionSeconds)); GcPauseRatio.Set(_gcPauseRatio.CalculateConsumedRatio(GcPauseSeconds)); }