Skip to content

Create a process handle

Usage

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).

Examples

p <- ps_handle()
p
#> <ps::ps_handle> PID=6327, NAME=R, AT=2024-01-21 20:57:52.64