record_rprof | R Documentation |
Run R code and record Rprof samples.
record_rprof(expr, rprof = tempfile(), ...)
expr |
An R expression to profile. |
rprof |
Path to a file with Rprof samples. Also returned from the function. |
... |
Additional arguments passed on to |
Path to a file with Rprof samples.
if (identical(Sys.getenv("PROFFER_EXAMPLES"), "true")) {
# Returns a path to Rprof samples.
record_rprof(replicate(1e2, sample.int(1e4)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.