profr provides 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:
install.packages("profr") library(profr) p <- profr(my.slow.function()) plot(p)
Two built in examples are:
(and the second has helped me to considerably speed up (5-20x) the development version of reshape)
Rewritten parsing to be about 3x faster
Corrected bug in parsing that lead to incorrect collapsing of non-adjacent functions
ggplot2.profr working again.