pprof_path: Show the path to the pprof executable.

View source: R/path.R

pprof_pathR Documentation

Show the path to the pprof executable.

Description

Defaults to the PROFFER_PPROF_BIN environment variable. Otherwise, it searches your Go lang installation for pprof.

Usage

pprof_path()

Details

See https://github.com/r-prof/proffer#installation for setup instructions.

Value

Character, path to pprof it exists and "" otherwise.

Examples

if (identical(Sys.getenv("PROFFER_EXAMPLES"), "true")) {
pprof_path()
}

proffer documentation built on Feb. 16, 2023, 7:07 p.m.