private static ProcessMemoryUsage GetProcessMemoryUsage(MemoryInfoResult memoryInfo) { var workingSetInBytes = memoryInfo.WorkingSet.GetValue(SizeUnit.Bytes); var privateMemory = AbstractLowMemoryMonitor.GetManagedMemoryInBytes() + AbstractLowMemoryMonitor.GetUnmanagedAllocationsInBytes(); return(new ProcessMemoryUsage(workingSetInBytes, privateMemory)); }
public override bool IsEarlyOutOfMemory(MemoryInfoResult memInfo, out Size commitChargeThreshold) { return(MemoryInformation.IsEarlyOutOfMemory(memInfo, out commitChargeThreshold)); }