profr v0.3.1

0

Monthly downloads

0th

Percentile

by Hadley Wickham

An alternative display for profiling information

profr provides an alternative data structure and visual rendering for the profiling information generated by Rprof.

Readme

profr

profr provides an alternative data structure and display for profiling data. It still uses Rprof() to collect the data, but outputs a data.frame which should be easier to manipulate. It also implements a novel visualisation which allows you to see the time taken by each function, as well as the context in which it was called.

To get started, try:

install.packages("profr")
library(profr)
p <- profr(my.slow.function())
plot(p)

Two built in examples are:

plot(nesting_prof)
plot(reshape_prof)

(and the second has helped me to considerably speed up (5-20x) the development version of reshape)

Functions in profr

Name Description
plot.profr Visualise profiling data with base graphics. Visualise profiling data stored in a profr data.frame.
ggplot.profr Visualise profiling data with ggplot2. Visualise profiling data stored in a profr data.frame.
profr Profile the performance of a function call.
sample-data Sample profiling datasets
parse_rprof Parse Rprof output.
No Results!

Last month downloads

Details

URL https://github.com/hadley/profr
BugReports https://github.com/hadley/profr/issues
License MIT + file LICENSE
Roxygen list(wrap = FALSE)
LazyData true
Packaged 2014-04-22 13:22:53 UTC; hadley
NeedsCompilation no
Repository CRAN
Date/Publication 2014-04-22 16:35:46
suggests ggplot2
imports plyr , stringr
Contributors Hadley Wickham

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/profr)](http://www.rdocumentation.org/packages/profr)