Rev 27442 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{summaryRprof}\alias{summaryRprof}\title{Summarise Output of R Profiler}\description{Summarise the output of the \code{\link{Rprof}} function to show theamount of time used by different \R functions.}\usage{summaryRprof(filename = "Rprof.out", chunksize = 5000)}\arguments{\item{filename}{Name of a file produced by \code{Rprof()}}\item{chunksize}{Number of lines to read at a time}}\details{This function is an alternative to \code{R CMD Rprof}. It provides theconvenience of an all-\R implementation but will be slower for largefiles.As the profiling output file could be larger than available memory, itis read in blocks of \code{chunksize} lines. Increasing \code{chunksize}will make the function run faster if sufficient memory is available.}\value{A list with components\item{by.self}{Timings sorted by \sQuote{self} time}\item{by.total}{Timings sorted by \sQuote{total} time}\item{sampling.time}{Total length of profiling run}}\seealso{The chapter on \dQuote{Tidying and profiling R code} in\dQuote{Writing \R Extensions} (see the \file{doc/manual} subdirectoryof the \R source tree).\code{\link{Rprof}}}\examples{\dontrun{## Rprof() is not available on all platformsRprof(tmp <- tempfile())example(glm)Rprof()summaryRprof(tmp)unlink(tmp)}}\keyword{utilities}