profr {profr} | R Documentation |
Profile the performance of function call.
profr(expr, interval = 0.02, quiet = TRUE)
expr |
expression to profile |
interval |
interval between samples (in seconds) |
quiet |
should output be discarded? |
This is a wrapper around Rprof
that provides results in an
alternative data structure, a data.frame. The columns of the data.frame
are:
TRUE
if the function is a terminal node in the call tree, i.e. didn't call any other functions
data.frame
of class profr
Hadley Wickham <h.wickham@gmail.com>
parse_rprof
to parse standalone Rprof
file, plot.profr
and ggplot.profr
to visualise the profiling data
glm_ex <- profr(example(glm)) head(glm_ex) summary(glm_ex) plot(glm_ex)