profile_app | R Documentation |
Start Shiny + profvis in the background. Chrome connects to the app and then closes to interrupt profvis. The profile report is then saved and exported in the public folder needed for CI/CD.
profile_app(
headless_actions = NULL,
timeout = NULL,
port = randomPort(max = 3500),
...
)
headless_actions |
Custom code passed as an expression to manipulate the app with headless
web browser, for instance
|
timeout |
Time to wait after starting the subprocess (s). Useful is you know how much time the app takes to load. Defaults to 10 seconds locally and 20 seconds on CI/CD. |
port |
Port to start the app, default to |
... |
Pass extra parameters to run_app_audit. This is useful if you work with packages like golem. |
Write a .Rprof file to be reused by CI/CD to publish the report on GitLab pages
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.