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