1 write to GuaranteedCpuUnits
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
SystemResources.cs (1)
57GuaranteedCpuUnits = Throw.IfLessThanOrEqual(guaranteedCpuUnits, 0.0);
7 references to GuaranteedCpuUnits
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceUtilization.cs (2)
23/// This percentage is calculated relative to the <see cref="SystemResources.GuaranteedCpuUnits"/>. 59double guaranteedCpuUnits = systemResources.GuaranteedCpuUnits;
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (5)
IResourceUtilizationSnapshotProviderTests.cs (1)
15Assert.Equal(DummyProvider.CpuUnits, provider.Resources.GuaranteedCpuUnits);
IResourceUtilizationTrackerTests.cs (1)
22Assert.Equal(DummyTracker.CpuUnits, utilization.SystemResources.GuaranteedCpuUnits);
Linux\AcceptanceTest.cs (2)
132Assert.Equal(1, provider.Resources.GuaranteedCpuUnits); // hack to make hardcoded calculation in resource utilization main package work. 180Assert.Equal(0.1, Math.Round(provider.Resources.GuaranteedCpuUnits, 1)); // hack to make hardcoded calculation in resource utilization main package work.
SystemResourcesTests.cs (1)
19Assert.Equal(CpuUnits, systemResources.GuaranteedCpuUnits);