Learn R Programming

proffer (version 0.2.0)

to_pprof: Convert Rprof samples to pprof format.

Description

Convert Rprof samples to pprof format.

Usage

to_pprof(rprof, pprof = tempfile())

Value

Path to pprof samples.

Arguments

rprof

Path to Rprof samples.

pprof

Path to pprof samples.

Examples

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

Run the code above in your browser using DataLab