prof.tree (version 0.1.0)

prof.tree: Summarise Output of R Sampling Profiler

Description

Summarise the output of the Rprof function to show the amount of time used by different R functions.

Usage

prof.tree(filename = "Rprof.out")
"print"(x, limit = 10, ...)

Arguments

filename
Name of a file produced by Rprof().
x
A ProfTree object.
limit
The maximum number of nodes to print. Can be NULL if the entire tree should be printed.
...
not used.

Examples

Run this code
Rprof(tmp <- tempfile())
example(glm)
Rprof(NULL)
tree <- prof.tree(tmp)
print(tree, limit = 20)
unlink(tmp)

Run the code above in your browser using DataLab