to_pprof: Convert Rprof samples to pprof format.

Description Usage Arguments Value Examples

View source: R/record.R

Description

Convert Rprof samples to pprof format.

Usage

1
to_pprof(rprof, pprof = tempfile())

Arguments

rprof

Path to Rprof samples.

pprof

Path to pprof samples.

Value

Path to pprof samples.

Examples

1
2
3
4
if (identical(Sys.getenv("PROFFER_EXAMPLES"), "true")) {
rprof <- record_rprof(replicate(1e2, sample.int(1e4)))
to_pprof(rprof)
}

proffer documentation built on July 26, 2021, 5:08 p.m.