Add some simple support for profiling R code