public void RamTest() { Windows.Ram ram = Windows.Ram.Instance; Console.WriteLine(ram.TotalPhysicalMemory); Console.WriteLine(ram.TotalPhysicalMemory / NTKeyword.IntM + "Mb"); Console.WriteLine(ram.AvailablePhysicalMemory); }
public void RamTest() { Windows.Ram ram = Windows.Ram.Instance; Console.WriteLine(ram.TotalPhysicalMemory); Console.WriteLine(ram.TotalPhysicalMemory / NTKeyword.IntM + "Mb"); Console.WriteLine(ram.AvailablePhysicalMemory); var process = Process.GetCurrentProcess(); Console.WriteLine((process.WorkingSet64 - process.PrivateMemorySize64) / NTKeyword.DoubleM); Console.WriteLine(VirtualRoot.ProcessMemoryMb); }