ScopeRecord

Qualified name: algan.utils.memory\_utils.ScopeRecord

class ScopeRecord(name, entry_forward, entry_reverse, params=None)[source]

Bases: object

One recorded ManualMemory.scope() frame.

events is the ordered allocation/temp-nesting stream that the memory calibration replays; peak_forward/peak_reverse are the scope’s own high-water marks relative to its entry pointers.

Methods

total_bytes

Alignment-free sum of this scope's own allocations.

Attributes

name

params

entry_forward

entry_reverse

exit_forward

exit_reverse

events

children

alloc_count

peak_forward

peak_reverse

total_bytes()[source]

Alignment-free sum of this scope’s own allocations.