Parse Rprof output.

Description

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.

Usage

1
parse_rprof(path, interval = 0.02)

Arguments

path

path to Rprof output

interval

real-time interval between samples (in seconds)

Value

data.frame of class profr

See Also

profr for profiling and parsing

Examples

1
2
3
4
5
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)