profile time and memory usage of a given R expression
prof(expr, doit = TRUE)
expr
: An R
expression to be evaluateddoit
: A boolean variable specifying whether profiling should be performed or not (intended for internal use).Profiling is performed using summaryRprof(memory="both")$by.self
.
Our memory profiling is not satistfactory yet!
Rprof
summaryRprof
Morgane Pierre-Jean and Pierre Neuvial