1 write to _cpuPercentage
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\WindowsSnapshotProvider.cs (1)
170
_cpuPercentage
= Math.Min(Hundred, usageTickDelta / (double)timeTickDelta * Hundred); // Don't change calculation order, otherwise we loose some precision
3 references to _cpuPercentage
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
Windows\WindowsSnapshotProvider.cs (3)
156
return
_cpuPercentage
;
172
Log.CpuUsageData(_logger, currentCpuTicks, _oldCpuUsageTicks, timeTickDelta, _cpuUnits,
_cpuPercentage
);
180
return
_cpuPercentage
;