HH\heapgraph_foreach_edge

Iterates over the edges in the heap graph

namespace HH;

function heapgraph_foreach_edge(
  resource $heapgraph,
  mixed $callback,
): void;

Calls back on every edge.

Parameters

  • resource $heapgraph - The resource obtained with heapgraph_create
  • mixed $callback - function(darray<string, mixed> $edge): void {} See documentation for heapgraph_edge() about the "edge" array passed to $callback

Returns

  • void