Skip to content

How to Profile Rhino App Perfomance #488

Answered by jakubnowicki
StephenWist asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @StephenWist ,
profvis should work fine with rhino. The error you have posted suggests, that there is a problem with box/rhino versions. purge_cache has been introduced in box 1.1.3 and is used in rhino >= 1.4.0. Make sure that you use the same environment when you run your profiling. When it comes to profvis_ui - can you provide a minimal example of a code that does not work? You can also check this - profvis_ui example translated to rhino:

# app/main.R

box::use(
  shiny[actionButton, callModule, fluidPage, moduleServer, NS, plotOutput, renderPlot],
  profvis[profvis_ui, profvis_server],
  ggplot2[aes, diamonds, ggplot, geom_point],
)

#' @export
ui <- function(id) {
  ns <- NS(id)
 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@StephenWist
Comment options

Answer selected by StephenWist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants