knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

pprof

Travis build status Coverage status CRAN status

Archived project

This project has been archived, because CRAN doesn't seem to support Go on their infrastructure. The (jointprof) package contains a function that helps discovering the pprof utility which this project packages.

Introduction

This is the pprof tool for visualization and analysis of profiling data, wrapped as an R package. It exports a single function which returns the path to the executable file.

The pprof binary can also be installed via go get github.com/google/pprof. However, some operating systems have an incompatible version of pprof on the PATH by default. This R package offers an easy-to-use robust alternative.

Installation

You can install pprof from GitHub with:

# install.packages("devtools")
devtools::install_github("r-prof/r-pprof")

Example

invisible(processx::run(
  pprof::get_pprof_pkg_path(),
  "-help",
  echo = TRUE,
  error_on_status = FALSE
))


r-prof/r-pprof documentation built on May 23, 2019, 7:33 a.m.