system.utilization {pbdPAPI}R Documentation

utilization

Description

CPU Utilization.

Usage

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


## Not run: 
library(pbdPAPI)

system.flops(1+1)

## End(Not run)


[Package pbdPAPI version 0.3-2 Index]