1 write to _totalMemory
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\WindowsSnapshotProvider.cs (1)
71
_totalMemory
= totalMemory; // "long" totalMemory => "double" _totalMemory - to calculate percentage later
2 references to _totalMemory
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Windows\WindowsSnapshotProvider.cs (2)
138
_memoryPercentage = Math.Min(Hundred, currentMemoryUsage /
_totalMemory
* Hundred); // Don't change calculation order, otherwise we loose some precision
142
Log.MemoryUsageData(_logger, (ulong)currentMemoryUsage,
_totalMemory
, _memoryPercentage);