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:
- 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
- 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)
- 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.
- rselenium r interface selenium, testing tools web-apps (https://github.com/johndharrison/rselenium). have started using perhaps use system.time compare speeds different components.
Comments
Post a Comment