Learn R Programming

proffer (version 0.2.0)

to_rprof: Convert pprof samples to Rprof format.

Description

Convert pprof samples to Rprof format.

Usage

to_rprof(pprof, rprof = tempfile())

Value

Path to pprof samples.

Arguments

pprof

Path to pprof samples.

rprof

Path to Rprof samples.

Examples

Run this code
if (identical(Sys.getenv("PROFFER_EXAMPLES"), "true")) {
pprof <- record_pprof(replicate(1e2, sample.int(1e4)))
to_rprof(pprof)
}

Run the code above in your browser using DataLab