Process.WorkingSet : Process « System.Diagnostics « C# / C Sharp by API






Process.WorkingSet

 



using System;
using System.Diagnostics;

class MainClass
{
   public static void Main()
   {
      Process thisProc = Process.GetCurrentProcess();
      Console.WriteLine("ProcessName:"+ thisProc.ProcessName);
      Console.WriteLine("Process: {0}, ID: {1}", thisProc.StartTime, thisProc.Id);
      Console.WriteLine("    CPU time: {0}", thisProc.TotalProcessorTime);
      Console.WriteLine("    priority class: {0}  priority: {1}", thisProc.PriorityClass, thisProc.BasePriority);
      Console.WriteLine("    virtual memory: {0}", thisProc.VirtualMemorySize);
      Console.WriteLine("    private memory: {0}", thisProc.PrivateMemorySize);
      Console.WriteLine("    physical memory: {0}", thisProc.WorkingSet);

   }
}

   
  








Related examples in the same category

1.Process.CloseMainWindow
2.Process.Exited
3.Process.GetCurrentProcess()
4.Process.GetProcessById
5.Process.Kill()
6.Process.Modules
7.Process.PeakWorkingSet64
8.Process.PriorityClass
9.Process.PrivateMemorySize
10.Process.ProcessName
11.Process.StandardOutput.ReadToEnd()
12.Process.Start
13.Process.StartInfo.RedirectStandardOutput
14.Process.Threads
15.Process.TotalProcessorTime
16.Process.VirtualMemorySize
17.Process.WaitForExit