proffer-package: proffer: profile R code with pprof
Description
It can be challenging to find sources of
slowness in large workflows, and the proffer package can help.
Proffer runs R code and displays summaries
to show where the code is slowest. Proffer leverages
the pprof utility to create highly efficient, clear, easy-to-read
interactive displays that help users find ways to reduce runtime.
The package also contains helpers to convert profiling data
to and from pprof format and visualize existing profiling data files.
For documentation, visit https://r-prof.github.io/proffer/.
# TBDif (identical(Sys.getenv("PROFFER_EXAMPLES"), "true")) {
# Start a pprof virtual server in the background.px <- pprof(replicate(1e2, sample.int(1e4)))
# Terminate the server.px$kill()
}