Is there any way to profile a Stan model that I run using RStan ?
I’m interested to see which C++ functions are called inside “sampling”. I have used the R profiling tool to capture this screenshot but it doesn’t allow me to see what is going on inside sampling.
In addition I tried to catch the R session with Apple Instruments but I couldn’t seem to get the right one. The trace I obtained does not show me what happens inside the sampling function. I was following these instructions when using Instruments: https://gist.github.com/loderunner/36724cc9ee8db66db305
Is there any easy way for me to see what is going on inside the sampling function and how much time is spent on each of the processes that go on inside it ?