Description Usage Arguments Details Value Examples
Measuring cache misses and hits
1 2 | ipcm.cache(expr, type = "all", level = NULL, gcFirst = TRUE,
burnin = TRUE)
|
expr |
A valid R expression to be profiled. |
type |
The type of cache event to profile; options are "miss", "hit", and "all". |
level |
The cache level to profile; options are "2" and "3". |
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 different classes of cache events additionally restricted to misses or hits. The additional arguments, gcFirst and burnin, can be toggled to better simulate the target context.
The results of the requested PAPI events are returned, in a named list, with values stored in double precision.
1 2 3 4 5 6 | ## Not run:
library(pbdPAPI)
ipcm.cache(1+1, type="miss", level="2")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.