roots_sprof: Root nodes list for 'sprof'

Description Usage Arguments Value To do Author(s) Examples

View source: R/roots_sprof.R

Description

Return a list of root nodes of all stacks.

Usage

1
roots_sprof(sprof, stacks)

Arguments

sprof

a sprof data structure, if available

stacks

an optional list of stacks as references to nodes

Value

A vector of unique entries as root of stacks. If sprof is provided, nmaes are imported from the node name table of sprof

To do

stacks should support any reasonable representation of the stacks, and preserve format.

Author(s)

Günther Sawitzki <[email protected]>

Examples

1
2
3
4
data(sprof01lm)
roots_sprof(sprof01lm)
trimmed <- trimstacks(sprof01lm, trimnode= "summary")
roots_sprof(sprof01lm, stacks=trimmed)

sprof documentation built on May 31, 2017, 1:56 a.m.