2 implementations of GetUtilization
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
ResourceMonitorService.cs (1)
88public ResourceUtilization GetUtilization(TimeSpan window)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Helpers\DummyTracker.cs (1)
16public ResourceUtilization GetUtilization(TimeSpan aggregationPeriod) => new(CpuPercentage, MemoryUsed, new SystemResources(CpuUnits, CpuUnits, MemoryTotal, MemoryTotal));
4 references to GetUtilization
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
Linux\AcceptanceTest.cs (4)
244var utilization = tracker.GetUtilization(TimeSpan.FromSeconds(5)); 262utilization = tracker.GetUtilization(TimeSpan.FromSeconds(5)); 328var utilization = tracker.GetUtilization(TimeSpan.FromSeconds(5)); 347utilization = tracker.GetUtilization(TimeSpan.FromSeconds(5));