system.epc: epc

Description Usage Arguments Details Value Examples

Description

Events per cycle.

Usage

1
system.epc(expr, event, gcFirst = TRUE, burnin = TRUE)

Arguments

expr

A valid R expression to be profiled.

event

A PAPI event counter.

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

This function measures the evaluation of the provided expression, expr, for real time, process time, reference clock cycles since last call, core clock cycles since last call, total events since first call, and incremental events per cycle since last call. The additional arguments, gcFirst and burnin, can be toggled to better simulate the target context.

Value

The return is a list consisting of:

real_time real time spent evaluating expression
proc_time total process time spent evaluating expression
ref Incremental reference clock cycles since last call.
core Incremental clock cycles since last call.
evt Total events since first call.
epc Incremental events per cycle since last call.

Examples

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

system.epc(1+1,"PAPI_L1_DCM")

## End(Not run)

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