test_pprof | R Documentation |
pprof()
Do a test run of pprof()
to verify that the
system dependencies like pprof
work as expected.
test_pprof( host = "localhost", port = proffer::random_port(), browse = interactive(), verbose = TRUE )
host |
Host name. Set to |
port |
Port number for hosting the local pprof server. Chosen randomly by default. |
browse |
Logical, whether to open a browser to view the pprof server. |
verbose |
Logical, whether to print console messages
such as the URL of the local |
See https://github.com/r-prof/proffer#installation for setup instructions.
pprof()
if (identical(Sys.getenv("PROFFER_EXAMPLES"), "true")) { test_pprof() }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.