Description Usage Arguments Details Value Author(s) See Also Examples
Computes and displays hot paths in profiling data.
1 2 3 |
pd |
profile data as returned by |
value |
character; show result as percentage, time, or hits. |
self |
logical; include self time for each stack in the result. |
srclines |
logical; include source information, if available, or not. |
GC |
logical; include GC information or not. |
memory |
logical; include memory use information or not. |
maxdepth |
integer; stacks are truncated to have at most
|
self.pct |
numeric; stacks with self percent values below this level are dropped. |
total.pct |
numeric; stacks with total percent values below this level are dropped. |
short |
character; abbreviation to be used for functions lower on the stack. |
nlines |
integer; number of lines to show. The lines shown are the ones with the highest total percentage. |
The hot path ordering sorts stacks in the profile data first by the
frequency with which the bottom functions on the stack are called, with
highest frequency first, then within each bottom function by the
frequency of the bottom two, and so on. Examining the result of
hotPaths
starting with low values of maxdepth
and then
moving to higher levels is a useful way to expore where the
computational effort is concentrated.
A data frame designed to produce a useful printed result.
Luke Tierney
Rprof
,
summaryRprof
,
flatProfile
,
filterProfileData
,
readProfileData
,
plotProfileCallGraph
,
profileCallGraph2Dot
1 2 3 | pd <- readProfileData(system.file("samples", "glmEx.out", package="proftools"))
hotPaths(pd)
hotPaths(pd, maxdepth = 8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.