Create a process handle

ps_handle(pid = NULL, time = NULL)

# S3 method for ps_handle
as.character(x, ...)

# S3 method for ps_handle
format(x, ...)

# S3 method for ps_handle
print(x, ...)

Arguments

pid

Process id. Integer scalar. NULL means the current R process.

time

Start time of the process. Usually NULL and ps will query the start time.

x

Process handle.

...

Not used currently.

Value

ps_handle() returns a process handle (class ps_handle).

See also

Examples

p <- ps_handle() p
#> <ps::ps_handle> PID=17400, NAME=R, AT=2020-02-16 11:38:31