# profr: a very nice convenience

Author: Dr Chibisi Chima-Okereke Created: December 4, 2014 16:03:00 GMT Published: December 4, 2014 16:03:00 GMT

In R, the Rprof function allows users to obtain process information by statistical profiling meaning that it collects call information over intervals of time. The profr package gives a convenient rapper over the Rprof function in R and returns information in a data frame and allows you to represent the call stack graphically.

## Example

We would like to look at the call stack in the MackChainLadder function in the ChainLadder package:

# Load the packages
require(profr)
# Run the profiler