R/proto.R

Defines functions install_proto_files provide_proto

provide_proto <- function() {
  if (!is_installed("RProtoBuf")) {
    abort("Package RProtoBuf is required to read pprof files.")
  }

  install_proto_files()
}

install_proto_files <- function() {
  RProtoBuf::readProtoFiles(system.file("proto", "profile.proto", package = utils::packageName()))
}

Try the profile package in your browser

Any scripts or data that you put into this service are public.

profile documentation built on Aug. 22, 2022, 9:10 a.m.