1 write to GuaranteedMemoryInBytes
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
SystemResources.cs (1)
64
GuaranteedMemoryInBytes
= Throw.IfLessThan(guaranteedMemoryInBytes, 1UL);
9 references to GuaranteedMemoryInBytes
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceUtilization.cs (2)
34
/// This percentage is calculated relative to the <see cref="SystemResources.
GuaranteedMemoryInBytes
"/>.
71
MemoryUsedPercentage = Math.Min(Hundred, (double)MemoryUsedInBytes / systemResources.
GuaranteedMemoryInBytes
* Hundred);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (7)
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
);
SystemResourcesTests.cs (1)
21
Assert.Equal(MemoryTotalInBytes, systemResources.
GuaranteedMemoryInBytes
);