4 references to new
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
ResourceUtilization.cs (1)
79
:
this
(cpuUsedPercentage, memoryUsedInBytes, systemResources)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
Helpers\DummyTracker.cs (1)
16
public ResourceUtilization GetUtilization(TimeSpan aggregationPeriod) =>
new
(CpuPercentage, MemoryUsed, new SystemResources(CpuUnits, CpuUnits, MemoryTotal, MemoryTotal));
ResourceUtilizationTests.cs (2)
20
var utilization = new
ResourceUtilization
(CpuPercentage, MemoryUsed, _systemResources);
33
Assert.Throws<ArgumentOutOfRangeException>(() => new
ResourceUtilization
(-50.0, 500, _systemResources));