1 write to GuaranteedMemoryInBytes
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
SystemResources.cs (1)
59
GuaranteedMemoryInBytes
= Throw.IfLessThan(guaranteedMemoryInBytes, 1UL);
11 references to GuaranteedMemoryInBytes
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceUtilization.cs (2)
31
/// This percentage is calculated relative to the <see cref="SystemResources.
GuaranteedMemoryInBytes
"/>.
68
MemoryUsedPercentage = Math.Min(Hundred, (double)MemoryUsedInBytes / systemResources.
GuaranteedMemoryInBytes
* Hundred);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (9)
CalculatorTests.cs (4)
55
Assert.Equal(1000UL, record.SystemResources.
GuaranteedMemoryInBytes
);
111
Assert.Equal(1000UL, record.SystemResources.
GuaranteedMemoryInBytes
);
162
Assert.Equal(1000UL, record.SystemResources.
GuaranteedMemoryInBytes
);
196
Assert.Equal(1000UL, record.SystemResources.
GuaranteedMemoryInBytes
);
IResourceUtilizationSnapshotProviderTests.cs (1)
17
Assert.Equal(DummyProvider.MemoryTotalInBytes, provider.Resources.
GuaranteedMemoryInBytes
);
IResourceUtilizationTrackerTests.cs (1)
20
Assert.Equal(DummyTracker.MemoryTotal, utilization.SystemResources.
GuaranteedMemoryInBytes
);
Linux\AcceptanceTest.cs (2)
134
Assert.Equal(100_000UL, provider.Resources.
GuaranteedMemoryInBytes
); // read from memory.limit_in_bytes
182
Assert.Equal(100_000UL, provider.Resources.
GuaranteedMemoryInBytes
); // read from memory.max
SystemResourcesTests.cs (1)
21
Assert.Equal(MemoryTotalInBytes, systemResources.
GuaranteedMemoryInBytes
);