Description Usage Arguments Value Author(s) References Examples
Get a sample profile and return it as a sprof
data structure.
1 | sampleRprof(expr, runs = NULL, gcFirst = TRUE, interval = 0.001, ...)
|
expr |
an expression to be profiled. |
runs |
nr of runs to profile. |
gcFirst |
boolean. Bracket the total simulation with calls to |
interval |
Real: time interval between samples, in s. |
... |
additional parameters, passed to |
A list of type sprof
Günther Sawitzki <gsawitzki@users.r-forge.r-project.org>
http://sintro.r-forge.r-project.org/
1 2 3 4 | ## Not run:
res_lm <- sampleRprof(for (i in 1:1000) yy<- lm(runif(1000)~rnorm(1000)), runs=100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.