Skip to content

Commit

Permalink
Added slide for {profvis} demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mthomas-ketchbrook committed Sep 11, 2023
1 parent 95deade commit 9cebd1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions materials/profvis/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ R package for visualizing how (and how fast/slow) your R code runs

::: {.notes}
* The package is from RStudio
* Help you understand the bottlenecks in your R code
* and, you guessed it, it works with Shiny too
:::

## Working with {profvis} & {golem} {auto-animate=true}
Expand Down Expand Up @@ -61,3 +63,15 @@ profvis::profvis({
::: {.notes}
You need to wrap the `run_app()` function in `print()`, before passing it to `profvis::profvis()`
:::

## Demo!

![](www/myspace_meme.png)

::: {.notes}
- Show how to change the `dev/run_dev.R` script to enable {profvis} profiling
- Launch the app, navigate to the "Overview" page, and change a filter
- Stop the app, and wait for the report to load
- Describe the flamegraph, change the filters to only show events that took time
- Navigate to the 'data' tab and discuss what took the most time
:::
Binary file added materials/profvis/www/myspace_meme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9cebd1b

Please sign in to comment.