Computes a flat profile reflecting time spent in functions themselves
(self) and functions plus callees (total).
Usage
flatProfile(pd, byTotal = TRUE, GC = TRUE)
Arguments
pd
profile data as returned by readProfileData.
byTotal
logical; sort by total time if true, self time if not.
GC
logical; include GC information or not.
Value
A matrix with one row per function recorded in the profile data.
Details
If byTotal is true then the result is analogous to the
by.total component of the result returned by summaryRprof.
Otherwise, the result is analogous to the by.self component
returned by summaryRprof but with an additional cumulative
self times column. The result returned when byTotal is not true
is analogous to the flat profile produced by gprof.