profvis: Profile an R expression and visualize profiling data

Description Usage Arguments Details See Also

Description

This function will run an R expression with profiling, and then return an htmlwidget for interactively exploring the profiling data.

Usage

1
2
profvis(expr = NULL, interval = 0.01, prof_output = NULL,
  prof_input = NULL, width = NULL, height = NULL)

Arguments

expr

Code to profile. Not compatible with prof_input.

interval

Interval for profiling samples, in seconds. Values less than 0.005 (5 ms) will probably not result in accurate timings

prof_output

Name of an Rprof output file in which to save profiling data. If NULL (the default), a temporary file will be used and automatically removed when the function exits.

prof_input

The path to an Rprof data file. Not compatible with expr or prof_output.

width

Width of the htmlwidget.

height

Height of the htmlwidget

Details

An alternate way to use profvis is to separately capture the profiling data to a file using Rprof(), and then pass the path to the corresponding data file as the prof_input argument to profvis().

See Also

print.profvis for printing options.

Rprof for more information about how the profiling data is collected.


yjalbert/profvis documentation built on May 4, 2019, 5:30 p.m.