trim_branch: Presents A Pruned Version of A Branch

Description Usage Arguments Details Value

Description

Depending on the function, keeps target node (`i`) children to depth `depth`, as well as target node parent's, and those parent's direct children (uncles, etc.), or trims all nodes that execute faster than a threshold time.

Usage

1
trim_branch(x, i, depth = 5L)

Arguments

x

data.table

i

the node id

depth

how many levels below `i` to show

disp.thresh

nodes below which speed threshold to keep (5 mills default)

Details

Typically `trim_branch_fast` is applied after `trim_branch` as otherwise `trim_branch` would show the branch all the way to the leaves.

Value

data.table pruned as described


brodieG/treeprof documentation built on May 13, 2019, 7:47 a.m.