shine: Generate shiny GUI for line profiling output

Description Usage Arguments Display Navigation Examples

Description

The shiny GUI generates two types of view depending on whether or not the src refs for the function are available. If src refs are available, it aligns profiling information with the original source code so that you can easily see time and memory behaviour in the context of the original code. If they are not available, it does the best it can do, just displaying the sequence of calls that it captured.

Usage

1
shine(x)

Arguments

x

a line profiling dataset

Display

The shiny app creates a table with six columns:

The time and memory summaries are displayed as inline bar charts. This gives you a qualitative impression of how expensive each line of code is - to get the precise details, hover over the bar.

Navigation

Calls/lines with a non-trivial amount of computation will be linked so that you can see the breakdown of time/memory within that line/call. This will work well for your own code (since you will have all the srcrefs), but less well for other packages and base R code since you'll only be able to see the sequence of the calls.

To go back to the previous call, click on the back button.

Examples

1
2
3
4
5
6
7
8
source(find_ex("read-delim.r"))
wine <- find_ex("wine.csv")

## Not run: 
x <- lineprof(read_delim(wine, sep = ","), torture = TRUE)
shine(x)

## End(Not run)

hadley/lineprof documentation built on May 17, 2019, 10:42 a.m.