Skip to contents

Print recursive functions analysis

Usage

pv_print_recursive(x)

Arguments

x

A profvis object.

Value

Invisibly returns a debrief_recursive object. Use capture.output() to capture the formatted text output.

Examples

p <- pv_example("recursive")
pv_print_recursive(p)
#> ## RECURSIVE FUNCTIONS
#> 
#> 
#> Function                       MaxDepth AvgDepth   Total ms      Pct
#> recurse                               5      4.0         30   100.0%
#> 
#> ### Next steps
#> pv_focus(p, "recurse")
#> pv_suggestions(p)