quick_profile: Very simple profiling of R code.

Description Usage Arguments Value Examples

View source: R/quick_profile.R

Description

Very simple profiling of R code.

Usage

1

Arguments

expr

expression. An R expression to evaluate and profile.

Value

The output of summaryRprof on that expression.

Examples

1
2
3
4
quick_profile({
  Sys.sleep(1)
  cat("That took a while!")
})

robertzk/productivus documentation built on March 19, 2018, 12:21 p.m.