Learn R Programming

profr (version 0.3.3)

parse_rprof: 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

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab