SystemProcessData

SystemProcessData[]

gives a dataset of information about processes that you are running on your computer system.

SystemProcessData[All]

gives information about all processes running on your computer system.

SystemProcessData[patt]

gives information about processes whose names or paths contain the string pattern patt.

SystemProcessData[propval]

gives information about processes for which property prop has value val.

SystemProcessData[{prop1val1,}]

gives information about processes for which property propi has value vali.

Details

  • SystemProcessData gives a dataset with the following keys for each process:
  • "PID"process ID
    "PPID"parent process ID
    "Memory"memory the process is using
    "StartTime"date the process was started
    "RealTime"time since the process started
    "SystemTime"CPU time spent in kernel space
    "UserTime"CPU time spent in user space
    "Threads"number of threads
    "User"the user the process belongs to
    "Program"name of the program
    "Path"full file path of the program
    "Dataset"dataset of all properties and values
  • In the dataset returned by SystemProcessData, processes are sorted by PID.
  • SystemProcessData[All] gives different process on different computer systems:
  • Windowsall unelevated processes
    Macprocesses only for the current user
    Linuxall non-kernel processes for all users
  • In SystemProcessData[prop->val], prop can be any of the keys associated with each process.

Examples

open all close all

Basic Examples  (1)

List processes for the current user:

In[1]:=
Click for copyable input
Out[1]=

List all available processes:

In[2]:=
Click for copyable input
Out[2]=

Return the process that matches the current $ProcessID:

In[3]:=
Click for copyable input
Out[3]=

Return the processes that match the current $Username:

In[4]:=
Click for copyable input
Out[4]=

Scope  (1)

Neat Examples  (1)

Introduced in 2018
(11.3)