Skip to main content

Module heap

Module heap 

Source
Expand description

The heap counter’s rows as a HeapSnapshot (ADR-0046 §6), with the heap feature: the one conversion a backend that counts the heap makes in its Platform::heap_snapshot, so shuyi-app and a game’s tool program (shuyi-cli) give the same snapshot of the same counts. A backend reads its counter (shuyi_alloc_count::global::reading and rows, and shuyi_alloc_count::tags::overflowed) and hands the counts here.

Functions§

snapshot
The snapshot of the heap counter’s counts and its rows by tag, with overflowed names past its table (tags::overflowed), at frame 0: a row each, its class read from its number (an unknown one as TagClass::Other), in the snapshot’s order.