Ruby: pm_memsize_t Struct Reference

Ruby 3.3.7p123 (2025-01-15 revision be31f993d7fa0219d85f7b3c694d454da4ecc10b)

Data Fields
pm_memsize_t Struct Reference

This struct stores the information gathered by the pm_node_memsize function. More...

`#include <node.h>`

## Data Fields
size_t | memsize
| The total memory footprint of the node and all of its children.
size_t | node_count
| The number of children the node has.

## Detailed Description

This struct stores the information gathered by the pm_node_memsize function.

It contains both the memory footprint and additionally metadata about the shape of the tree.

Definition at line 33 of file node.h.

## Field Documentation

## ◆ memsize

size_t pm_memsize_t::memsize

The total memory footprint of the node and all of its children.

Definition at line 35 of file node.h.

## ◆ node_count

size_t pm_memsize_t::node_count

The number of children the node has.

Definition at line 38 of file node.h.

The documentation for this struct was generated from the following file:

- prism/node.h