Skip to content

Create a process handle

Usage

ps_handle(pid = NULL, time = NULL)

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

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

# S3 method for class '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=6015, NAME=R, AT=2024-10-29 08:51:51.83