The RStudio IDE includes integrated support for profiling with profvis.

Profiling code

There are a number of ways to start and stop the profiler.

Finally, it’s also possible to use profvis by calling the profvis() function, as demonstrated in the rest of the documentation on this site.

Exploring profiles in RStudio

Profiles will open in a new tab in the RStudio IDE.

When viewed in RStudio, these profiles have some extra features: