Beispiel #1
0
 public void RamTest()
 {
     Windows.Ram ram = Windows.Ram.Instance;
     Console.WriteLine(ram.TotalPhysicalMemory);
     Console.WriteLine(ram.TotalPhysicalMemory / NTKeyword.IntM + "Mb");
     Console.WriteLine(ram.AvailablePhysicalMemory);
 }
Beispiel #2
0
        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);
        }