timeit, and is primarily meant to be called
through timeit. However, if you desire a
more direct wrapper to Rprof then this can be
useful.
do_timeit(call, replications = NULL, interval = 0.005, memory.profiling = FALSE, show.warnings = FALSE, i = 1, gcFirst = TRUE, gcDuring = FALSE)timeit).NULL,
which indicates we should 'guess' an appropriate number
of replications. in order to more accurately profile
quickly-running functions, we run the call
replications times, and then infer the run-time as
. by default, the argument is
NULL and we attempt to infer an appropriate number
of replications.timeit.replications? (very
slow)