Description Usage Arguments Display Navigation Examples
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.
1 | shine(x)
|
x |
a line profiling dataset |
The shiny app creates a table with six columns:
the line number (or call number)
the source code, or if not available, the name of the function
t, the amount of time spent on that line (in seconds)
r, the amount of memory released by that call (in megabytes)
a, the amount of memory allocated by that call (in megabytes)
d, the number of duplications performed by that call
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.
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.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.