public
Description: An alternative profiling package for R
Homepage: http://had.co.nz/profr
Clone URL: git://github.com/hadley/profr.git
Click here to lend your support to: profr and make a donation at www.pledgie.com !
profr / ANNOUNCE
100644 25 lines (15 sloc) 0.673 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
profr 0.1 ----------------------------
 
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 length of each call, 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)
 
Regards,
 
Hadley
 
--
http://had.co.nz/