function HH\heapgraph_node(
  resource $heapgraph,
  int $index,
): array<string,mixed>

Get a specific node from the heap graph


  • resource $heapgraph - The resource obtained with heapgraph_create
  • int $index - The node index

Return Values

  • \array<string, - mixed> The requested node, containing these fields:

    index the node id, equal to $index kind for non-roots, the node's HeaderKind. For roots, "Root". size the node's allocated size (including padding), in bytes. type if known, the node's C++ type name

if the node is an object: class PHP classname of the object

if the node is a static local (kind == HPHP::rds::StaticLocalData) func PHP function name local name of the static local variable class (optional) a method's class, or closure's context class

if the node is a static property (kind == HPHP::StaticPropData) class PHP classname owning the static property prop name of the static property