1 Process proc = Process.GetCurrentProcess(); 2 Console.WriteLine(“Process Info: “+Environment.NewLine+ 3 “Private Memory Size: {0:N0}”+Environment.NewLine + 4 “Virtual Memory Size: {1:N0}” + Environment.NewLine + 5 “Working Set Size: {2:N0}” + Environment.NewLine + 6 “Paged Memory Size: {3:N0}” + Environment.NewLine + 7 “Paged System Memory Size: {4:N0}” + Environment.NewLine + 8 “Non-paged System Memory Size: {5:N0}” + Environment.NewLine, 9 proc.PrivateMemorySize64, proc.VirtualMemorySize64, proc.WorkingSet64, proc.PagedMemorySize64, proc.PagedSystemMemorySize64, proc.NonpagedSystemMemorySize64 );
,