next up previous
Next: Run-time calculations Up: Speed Previous: Comparing the speed of

Profiling in R

To analyze which part of your code is taking a long time, use the Rprof() function; it will tell you how much time was spent in each function, both R and user-written:
... code to profile ... 

The last command parses the file you made using Rprof() and presents it in a nice clear format.

Keywords: R, profiling, speed, run-time, timing

Last modified: 1/20/12.

Chris Paciorek 2012-01-21