sampleRprof: Get a sample profile

Description Usage Arguments Value Author(s) References Examples

View source: R/sampleRprof.R

Description

Get a sample profile and return it as a sprof data structure.

Usage

1
sampleRprof(expr, runs = NULL, gcFirst = TRUE, interval = 0.001, ...)

Arguments

expr

an expression to be profiled.

runs

nr of runs to profile.

gcFirst

boolean. Bracket the total simulation with calls to GC(). If TRUE, the garbage collection information will be reported as components gcin, codegcout.

interval

Real: time interval between samples, in s.

...

additional parameters, passed to Rprof

Value

A list of type sprof

Author(s)

Günther Sawitzki <gsawitzki@users.r-forge.r-project.org>

References

http://sintro.r-forge.r-project.org/

Examples

1
2
3
4
## Not run: 
	res_lm <- sampleRprof(for (i in 1:1000) yy<- lm(runif(1000)~rnorm(1000)), runs=100)
	
## End(Not run)

sprof documentation built on May 2, 2019, 4:45 p.m.