2 implementations of GetUtilization
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
ResourceMonitorService.cs (1)
88
public ResourceUtilization
GetUtilization
(TimeSpan window)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Helpers\DummyTracker.cs (1)
16
public 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)
244
var utilization = tracker.
GetUtilization
(TimeSpan.FromSeconds(5));
262
utilization = tracker.
GetUtilization
(TimeSpan.FromSeconds(5));
328
var utilization = tracker.
GetUtilization
(TimeSpan.FromSeconds(5));
347
utilization = tracker.
GetUtilization
(TimeSpan.FromSeconds(5));