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 142Log.MemoryUsageData(_logger, (ulong)currentMemoryUsage, _totalMemory, _memoryPercentage);