R/plot.R

Defines functions plot.proftools_profData

Documented in plot.proftools_profData

plot.proftools_profData <- function(x,
                                    type = c("call", "tree", "flame", "time"),
                                    ...) {
    type <- match.arg(type)
    switch(type,
           call = plotProfileCallGraph(x, ...),
           tree = calleeTreeMap(x, ...),
           flame = flameGraph(x, order = "hot", ...),
           time = flameGraph(x, order = "time", ...))
}
ltierney/Rpkg-proftools documentation built on July 12, 2020, 5:21 p.m.