XRPROF(1) | General Commands Manual | XRPROF(1) |
xrprof - profile R programs
xrprof [-h] [-m] [-F FREQ] [-d DURATION] [-o FILE] -p PID
A sampling profiler for R(1) programs. xrprof writes to standard output the Rprof.out format widely used by existing R-based tools.
Malformed arguments will fall back on the defaults, if possible.
Sample from an existing R program for 5 seconds at a useful frequency:
$ xrprof -F 50 -d 5 -p `pidof R`
Start a new R program in the background and then start the profiler, writing samples to the file Rprof.out in the current directory:
$ Rscript myprogram.R &
$ xrprof -F 50 -p $! > Rprof.out
xrprof was written by Aaron Jacobs.
2020-01-11 |