Heap

final class ntoseye.Heap

One heap of a process, from its heap list.

property address: int

The heap address.

property index: int

The index of the heap in the process’s heap list.

property info: HeapInfo

The HeapInfo record of this handle: its properties as one value.

inspect(*, list_entries: bool = False) → HeapDetail

Decode this heap (!heap -h), with its entries if list_entries is true.

property kind: Literal['nt', 'segment', 'unknown']
property signature: int | None

The _HEAP.Signature of an unknown heap (0 if ntoseye could not classify it). None for NT and segment heaps.

property stats: Diagnostic[HeapStats]

Heap-wide sizes and allocator counts. An unavailable value contains the layout, memory, or symbol error for this heap only.

to_dict() → dict[str, Any]

The record (info) as a plain dict.