Learn R Programming

proftools (version 0.99-3)

plot.proftools_profData: Plot Profile Data

Description

Plot method for objects of class "proftools_profData".

Usage

# S3 method for proftools_profData
plot(x, type = c("call", "tree", "flame", "time"),
                                  …)

Arguments

x

an object of class "proftools_profData".

type

the type of plot to be drawn; default is a call graph.

additional arguments for specific plot types.

Details

Depending on the type argument the profile data plot method calls link{plotProfileCallGraph}, calleeTreeMap, or flameGraph with order = "hot" or orter = "time".

See Also

plotProfileCallGraph, calleeTreeMap, flameGraph

Examples

Run this code
# NOT RUN {
pd <- readProfileData(system.file("samples", "glmEx.out", package="proftools"))
plot(pd)
plot(pd, style = plain.style)
plot(pd, type = "call")
plot(pd, type = "flame")
# }

Run the code above in your browser using DataLab