parse_rprof {profr} | R Documentation |
Parses the output of Rprof
into an alternative format
described in profr
. This produces a flat data frame, which is
somewhat easier to summarise and visualise.
parse_rprof(path, interval = 0.02)
path |
path to |
interval |
real-time interval between samples (in seconds) |
data.frame
of class profr
profr
for profiling and parsing
nesting_ex <- system.file("samples", "nesting.rprof", package="profr") nesting <- parse_rprof(nesting_ex) reshape_ex <- system.file("samples", "reshape.rprof", package="profr") diamonds <- parse_rprof(reshape_ex)