1 write to MemoryUsedInBytes
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
ResourceUtilization.cs (1)
66
MemoryUsedInBytes
= Throw.IfLessThan(memoryUsedInBytes, 0);
7 references to MemoryUsedInBytes
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
ResourceUtilization.cs (1)
68
MemoryUsedPercentage = Math.Min(Hundred, (double)
MemoryUsedInBytes
/ systemResources.GuaranteedMemoryInBytes * Hundred);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
CalculatorTests.cs (4)
54
Assert.Equal(500UL, record.
MemoryUsedInBytes
);
110
Assert.Equal(0UL, record.
MemoryUsedInBytes
);
161
Assert.Equal(1000UL, record.
MemoryUsedInBytes
);
195
Assert.Equal(1500UL, record.
MemoryUsedInBytes
);
IResourceUtilizationTrackerTests.cs (1)
19
Assert.Equal(DummyTracker.MemoryUsed, utilization.
MemoryUsedInBytes
);
ResourceUtilizationTests.cs (1)
22
Assert.Equal(MemoryUsed, utilization.
MemoryUsedInBytes
);