Skip to contents

This is not unique to Targets, and may be useful elsewhere. Note that this function will only ever terminate if the process it's monitoring terminates. Keep this in mind.

Usage

monitor_pid(pid, interval = 0.1)

Arguments

pid

Pid of the process to monitor. Integer vector with length 1.

interval

Amount of time in seconds between resource polls. Double vector of length 1.

Value

A data frame of resource results, one row per timepoint