to_pprof: Convert Rprof samples to pprof format.

View source: R/record.R

to_pprofR Documentation

Convert Rprof samples to pprof format.

Description

Convert Rprof samples to pprof format.

Usage

to_pprof(rprof, pprof = tempfile())

Arguments

rprof

Path to Rprof samples.

pprof

Path to pprof samples.

Value

Path to pprof samples.

Examples

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

wlandau/proffer documentation built on June 10, 2025, 6:05 p.m.