r - Code profiling for Shiny app? -


for r shiny web app, ways run code profiling show parts of shiny code taking processing time?

i've got big, fat, complex shiny app, , i'd figure out in labyrinth of code i'm slowing shiny app down most. i've tried out rprof , profr haven't gotten insight them.

a few (rough) ideas:

  1. profiling app in browser might help. have largish app uses navbarpage , page build speed getting slow. using profiling in chrome (developer tools) identified 'culprit'. fix/improvement in works https://github.com/rstudio/shiny/issues/381#issuecomment-33750794
  2. run profiler code window in app. using shinyace package (https://github.com/trestletech/shinyace) can edit (and run) code, including profilers within app (i.e., call reactives etc.). see link below (r > code). note code evaluation deactivated on server source code app on github if want try out (see page)
  3. write code in regular r functions called reactive functions. in process of rewriting app can use knitr 'reproducible research' (r > report). restructuring makes easier use profiling libraries r(studio) without starting app.
  4. rselenium r interface selenium, testing tools web-apps (https://github.com/johndharrison/rselenium). have started using perhaps use system.time compare speeds different components.

http://vnijs.rady.ucsd.edu:3838/marketing/


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -