prof.tree: Summarise Output of R Sampling Profiler

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
3
4
prof.tree(filename = "Rprof.out")

## S3 method for class 'ProfTree'
print(x, limit = 25, ...)

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.

Value

An object of ProfTree and Node classes.

See Also

Rprof summaryRprof plot.Node

Examples

1
2
3
4
5
6
Rprof(tmp <- tempfile())
example(glm)
Rprof(NULL)
tree <- prof.tree(tmp)
print(tree, limit = 20)
unlink(tmp)

artemklevtsov/prof.tree documentation built on May 10, 2019, 1:51 p.m.