prof.tree: Summarise Output of R Sampling Profiler

Description Usage Arguments Examples

Description

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

Usage

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

## S3 method for class 'ProfTree'
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

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

prof.tree documentation built on May 2, 2019, 10:17 a.m.