3 references to MemoryUsed
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
ResourceUtilizationTests.cs (3)
20
var utilization = new ResourceUtilization(CpuPercentage,
MemoryUsed
, _systemResources);
22
Assert.Equal(
MemoryUsed
, utilization.MemoryUsedInBytes);
23
Assert.Equal(Math.Min(1.0, (double)
MemoryUsed
/ MemoryTotal) * 100.0, utilization.MemoryUsedPercentage);