Functions to summarize profile data.
funSummary(pd, byTotal = TRUE, value = c("pct", "time", "hits"),
           srclines = TRUE, GC = TRUE, memory = FALSE, self.pct = 0, total.pct = 0)
callSummary(pd, byTotal = TRUE, value = c("pct", "time", "hits"),
            srclines = TRUE, GC = TRUE, memory = FALSE, self.pct = 0, total.pct = 0)
pathSummary(pd, value = c("pct", "time", "hits"),
            srclines = FALSE, GC = TRUE, memory = FALSE, total.pct = 0, ...)
srcSummary(pd, byTotal = TRUE, value = c("pct", "time", "hits"),
           GC = TRUE, memory = FALSE, total.pct = 0, source = TRUE,
           width = getOption("width"))profile data as returned by readProfileData.
logical; sort by total or by self time.
character; show result as percentage, time, or hits.
logical; include source information, if available, or not.
logical; include GC information or not.
logical; include memory use information or not.
numeric; functions at the bottom of the stacks with self percentages below this value are removed.
numeric; functions at the top of the stacks with total percentages below this value are removed.
logical; if true, include source lines if available.
maximal line length to use; source lines are abbreviated to fit if necessary.
arguments to control path formatting; not useful at this time.
A data frame of summary information.
funSummary returns a summary of the time spent in each
  function, or each call site if source information is available and
  requested. It is similar to flatProfile.
callSummary provides a breakdown by calls, again with an option
  of distinguishing call and callee sites if source information is
  available.
pathSummary returns a summary of time spent in each unique call
  path contained in the profile data.
For profile data containing source information srcSummary
  returns a summary of time spent in each file line recorded in the
  profile data.
Rprof,
  flatProfile,
  summaryRprof,
  readProfileData,
  plotProfileCallGraph,
  printProfileCallGraph,
  profileCallGraph2Dot
# NOT RUN {
pd <- readProfileData(system.file("samples", "glmEx.out", package="proftools"))
funSummary(pd)
callSummary(pd)
pathSummary(pd)
# }
Run the code above in your browser using DataLab