An Alternative Display for Profiling Information

An alternative data structure and visual rendering for the profiling information generated by Rprof.

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:

p <- profr(my.slow.function())

Two built in examples are:


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


Version 0.3.1

  • Fixes for outstanding R CMD check problems

Version 0.3

  • Rewritten parsing to be about 3x faster

  • Corrected bug in parsing that lead to incorrect collapsing of non-adjacent functions

  • Get ggplot2.profr working again.

Changes in version 0.2

  • Updated documentation
  • Better namespace support

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.3.3 by Hadley Wickham, a month ago

Report a bug at

Browse source code at

Authors: Hadley Wickham [aut, cre]

Documentation:   PDF Manual  

Task views: High-Performance and Parallel Computing with R

MIT + file LICENSE license

Imports plyr, stringr

Suggests ggplot2

Imported by corr2D.

Suggested by bossMaps.

See at CRAN