I need to profile R code, preferably with a graphical interface. Which package + IDE would be the best for this task? I didn't know there would be different kinds of profiling in R (when I profile in other languages, I get all I need in the same interface), but my requirements are, in order of importance:
- Understand which are the functions where my code spends more time. Ideally, frequency of call would be also needed, not just total time (it makes an hell of a difference if function A is taking an hour of CPU time because it's being called one million times, or 10 times but each call takes 6 minutes);
- Be able to drill down at line level and see which lines take more time in a single function call;
- Finally, less important but nice to have, understand the memory footprint of the functions
PS concerning the IDE, I guess you people will suggest me to use RStudio and that's perfectly fine, but I didn't want to hardwire the IDE choice, because I really need to do profiling well, and if that requires me to change IDE, I'm willing to pay that price.