R/rprof-write.R, and 1 more
These functions read profile data from files, or store profile data to files.
validate_profile() on input, writers on output.
read_rprof() reads a file generated by
in a compatible format.
read_pprof() reads a file generated by
writes a Gzip-compressed file that can be processed with
read_rprof(path, ..., version = "1.0") read_pprof(path, ..., version = "1.0") write_rprof(x, path) write_pprof(x, path)
Version of the data, currently only
"1.0" is supported.
Pass an explicit value to this argument if your code depends on the data
Profiler data, see
Valid profile data (readers), input data (writers).
Use the proftools, profvis, or prof.tree R packages to
further analyze files created by the
pprof tool in conjunction with
_pprof() functions. The tool is available in the pprof R package,
or (in newer versions) via
go get github.com/google/pprof.