Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ps_cpu_times

CPU times of the process


Description

All times are measured in seconds:

  • user: Amount of time that this process has been scheduled in user mode.

  • system: Amount of time that this process has been scheduled in kernel mode

  • children_user: On Linux, amount of time that this process's waited-for children have been scheduled in user mode.

  • children_system: On Linux, Amount of time that this process's waited-for children have been scheduled in kernel mode.

Usage

ps_cpu_times(p = ps_handle())

Arguments

p

Process handle.

Details

Throws a zombie_process() error for zombie processes.

Value

Named real vector or length four: user, system, children_user, children_system. The last two are NA on non-Linux systems.

See Also

Examples

p <- ps_handle()
p
ps_cpu_times(p)
proc.time()

ps

List, Query, Manipulate System Processes

v1.6.0
MIT + file LICENSE
Authors
Jay Loden [aut], Dave Daeschler [aut], Giampaolo Rodola' [aut], Gábor Csárdi [aut, cre], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.