method
Subprocess.resourceUsage
Get the resource usage of the process, such as max RSS and CPU time
Returns undefined until the process has exited
Referenced types
interface ResourceUsage
- contextSwitches: { involuntary: number; voluntary: number }
The number of voluntary and involuntary context switches that the process made.
- cpuTime: { system: number; total: number; user: number }
The amount of CPU time used by the process, in microseconds.