to_pprof | R Documentation |
Convert Rprof samples to pprof format.
to_pprof(rprof, pprof = tempfile())
rprof |
Path to Rprof samples. |
pprof |
Path to pprof samples. |
Path to pprof samples.
if (identical(Sys.getenv("PROFFER_EXAMPLES"), "true")) { rprof <- record_rprof(replicate(1e2, sample.int(1e4))) to_pprof(rprof) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.