예제 #1
0
        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
        }
예제 #2
0
 public void UpdateMetrics()
 {
     GcCpuRatio.Set(_gcCpuRatio.CalculateConsumedRatio(GcCollectionSeconds));
     GcPauseRatio.Set(_gcPauseRatio.CalculateConsumedRatio(GcPauseSeconds));
 }