1 write to GuaranteedCpuUnits
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
SystemResources.cs (1)
57
GuaranteedCpuUnits
= 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
"/>.
59
double guaranteedCpuUnits = systemResources.
GuaranteedCpuUnits
;
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (5)
IResourceUtilizationSnapshotProviderTests.cs (1)
15
Assert.Equal(DummyProvider.CpuUnits, provider.Resources.
GuaranteedCpuUnits
);
IResourceUtilizationTrackerTests.cs (1)
22
Assert.Equal(DummyTracker.CpuUnits, utilization.SystemResources.
GuaranteedCpuUnits
);
Linux\AcceptanceTest.cs (2)
132
Assert.Equal(1, provider.Resources.
GuaranteedCpuUnits
); // hack to make hardcoded calculation in resource utilization main package work.
180
Assert.Equal(0.1, Math.Round(provider.Resources.
GuaranteedCpuUnits
, 1)); // hack to make hardcoded calculation in resource utilization main package work.
SystemResourcesTests.cs (1)
19
Assert.Equal(CpuUnits, systemResources.
GuaranteedCpuUnits
);