File: load.R

package info (click to toggle)
r-cran-bench 1.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 712 kB
  • sloc: ansic: 339; sh: 13; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 267 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#' Get system load averages
#'
#' Uses OS system APIs to return the load average for the past 1, 5 and 15 minutes.
#' @export
bench_load_average <- function() {
  stats::setNames(
    .Call(bench_load_average_),
    c("load_1_min", "load_5_min", "load_15_min")
  )
}