Description Usage Arguments Details Value Examples
Events per cycle.
1 | system.epc(expr, event, gcFirst = TRUE, burnin = TRUE)
|
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. |
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.
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. |
1 2 3 4 5 6 | ## Not run:
library(pbdPAPI)
system.epc(1+1,"PAPI_L1_DCM")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.