system.idle: Idle

Description Usage Arguments Details Value Examples

Description

Measuring idle cycles.

Usage

1
system.idle(expr, events = "float", gcFirst = TRUE, burnin = TRUE)

Arguments

expr

A valid R expression to be profiled.

events

The class of processing unit to profile; options are "float", "int", "numeric", "branch", "load", and "all".

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 the number of cycles that specific specialized processing units are idle. The additional arguments, gcFirst and burnin, can be toggled to better simulate the target context.

Value

The results of the requested PAPI events are returned, in a named list, with values stored in double precision.

Examples

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

system.idle(1+1, events="float")

## End(Not run)

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