List, Query, Manipulate System Processes

[Up] [Top]

Documentation for package ‘ps’ version 1.6.0

Help Pages

as.character.ps_handle Create a process handle
CleanupReporter testthat reporter that checks if child processes are cleaned up in tests
errno List of 'errno' error codes
format.ps_handle Create a process handle
print.ps_handle Create a process handle
ps Process table
ps_boot_time Boot time of the system
ps_children List of child processes (process objects) of the process. Note that this typically requires enumerating all processes on the system, so it is a costly operation.
ps_cmdline Command line of the process
ps_connections List network connections of a process
ps_cpu_count Number of logical or physical CPUs
ps_cpu_times CPU times of the process
ps_create_time Start time of a process
ps_cwd Process current working directory as an absolute path.
ps_descent Query the ancestry of a process
ps_disk_partitions List all mounted partitions
ps_disk_usage Disk usage statistics, per partition
ps_environ Environment variables of a process
ps_environ_raw Environment variables of a process
ps_exe Full path of the executable of a process
ps_find_tree Mark a process and its (future) child tree
ps_get_nice Get or set the priority of a process
ps_gids User ids and group ids of the process
ps_handle Create a process handle
ps_interrupt Interrupt a process
ps_is_running Checks whether a process is running
ps_is_supported Query the type of the OS
ps_kill Kill a process
ps_kill_tree Mark a process and its (future) child tree
ps_loadavg Return the average system load over the last 1, 5 and 15 minutes as a tuple. The “load” represents the processes which are in a runnable state, either using the CPU or waiting to use the CPU (e.g. waiting for disk I/O). On Windows this is emulated by using a Windows API that spawns a thread which keeps running in background and updates results every 5 seconds, mimicking the UNIX behavior. Thus, on Windows, the first time this is called and for the next 5 seconds it will return a meaningless (0.0, 0.0, 0.0) vector. The numbers returned only make sense if related to the number of CPU cores installed on the system. So, for instance, a value of 3.14 on a system with 10 logical CPUs means that the system load was 31.4% percent over the last N minutes.
ps_mark_tree Mark a process and its (future) child tree
ps_memory_info Memory usage information
ps_name Process name
ps_num_fds Number of open file descriptors
ps_num_threads Number of threads
ps_open_files Open files of a process
ps_os_type Query the type of the OS
ps_parent Parent pid or parent process of a process
ps_pid Pid of a process handle
ps_pids Ids of all processes on the system
ps_ppid Parent pid or parent process of a process
ps_resume Resume (continue) a stopped process
ps_send_signal Send signal to a process
ps_set_nice Get or set the priority of a process
ps_shared_libs List the dynamically loaded libraries of a process
ps_shared_lib_users List all processes that loaded a shared library
ps_status Current process status
ps_suspend Suspend (stop) the process
ps_system_cpu_times System CPU times.
ps_system_memory Statistics about system memory usage
ps_system_swap System swap memory statistics
ps_terminal Terminal device of the process
ps_terminate Terminate a Unix process
ps_tty_size Query the size of the current terminal
ps_uids User ids and group ids of the process
ps_username Owner of the process
ps_users List users connected to the system
ps_windows_nice_values Get or set the priority of a process
signals List of all supported signals
with_process_cleanup Mark a process and its (future) child tree