HH\heapgraph_stats

Description

function HH\heapgraph_stats(
  resource $heapgraph,
): array<string,int>

General statistics on the heap graph

Parameters

  • resource $heapgraph - The resource obtained with heapgraph_create

Return Values

  • \array<string, - int> - General metrics describing the heap graph. Keys are defined as follows:

    nodes count of nodes in the graph edges count of pointers (edges) in the graph roots count of root->nonroot pointers (pointers where from is root) root_nodes count of root nodes exact 1 if type scanners were built, 0 otherwise