HH\heapgraph_dfs_nodes

performs dfs over the heap graph, starting from the given nodes.

Description

function HH\heapgraph_dfs_nodes(
  resource $heapgraph,
  array<int> $roots,
  array<int> $skips,
  mixed $callback,
): void

performs dfs over the heap graph, starting from the given nodes.

calls back on every new node in the scan.

Parameters

  • resource $heapgraph - the resource obtained with heapgraph_create
  • \array<int> $roots - node indexes to start the scan from
  • \array<int> $skips - node indexes to consider as if they're not there
  • mixed $callback - function(array $node): void {}