system.utilization: utilization

Description Usage Arguments Details Value Examples

Description

CPU Utilization.

Usage

1
system.utilization(expr, gcFirst = TRUE, burnin = TRUE)

Arguments

expr

A valid R expression to be profiled.

gcFirst

logical; determines if garbage collection should be called before profiling.

burnin

logical; determines if the function should first be evaluated with an empty expression.

Details

We define processor utilization as:

utilization = \frac{ins}{clockrate\ *\ real\_time\ *\ ncpus}

where ins is the number of instructions measured by PAPI, clockrate is the clock frequency of the processor in Hz, real_time is the wall clock time, and ncpus is the number of "cores" (physical+logical) detected by PAPI.

Value

The return is a list consisting of:

real_time real time spent evaluating expression
proc_time total process time spent evaluating expression
ins Number of instructions.
ipc Instructions per cycle.
utilization CPU utilization (proportion)

Examples

1
2
3
4
5
6
## Not run: 
library(pbdPAPI)

system.flops(1+1)

## End(Not run)

RBigData/pbdPAPI documentation built on May 8, 2019, 5:48 a.m.