This should be easy, but can't find any straight-forward answers on google or SO.
Imagine in R I run a function FOuter()
, and within its body, it does some loop and calls another function FInner()
. Is there a simple way of counting/recording the number of times FInner
gets called? I'm trying to estimate how much time I can save if I optimize FInner
.