Skip to contents

Returns the functions that a specified function calls, based on profiling data. Shows what the target function invokes.

Usage

pv_callees(x, func)

Arguments

x

A profvis object.

func

The function name to analyze.

Value

A data frame with columns:

  • label: Callee function name

  • samples: Number of times this callee appeared

  • pct: Percentage of calls to this callee

Examples

p <- pv_example()
pv_callees(p, "outer")
#> Function 'outer' not found in profiling data.
#> [1] label   samples pct    
#> <0 rows> (or 0-length row.names)