HH\heapgraph_foreach_root

Description

function HH\heapgraph_foreach_root(
  resource $heapgraph,
  mixed $callback,
): void

Iterates over the roots in the heap graph. Calls back on every root.

Parameters

  • resource $heapgraph - The resource obtained with heapgraph_create
  • mixed $callback - function(array $edge): void {}