struct
Lapis::Profiler::AllocationSnapshot
- Lapis::Profiler::AllocationSnapshot
- Struct
- Value
- Object
Overview
Stack-allocated point-in-time snapshot of GC memory statistics. Captures Boehm GC counters without triggering any heap allocations.
Defined in:
libgodot/profiler/core/snapshot.crConstructors
-
.capture : AllocationSnapshot
Captures current GC state with zero heap allocations.
- .new(total_bytes : UInt64, bytes_since_gc : UInt64, heap_size : UInt64, free_bytes : UInt64, unmapped_bytes : UInt64, timestamp : ::Time::Instant = ::Time.instant)
Instance Method Summary
- #bytes_since_gc : UInt64
-
#delta_from(prior : AllocationSnapshot) : AllocationDelta
Computes delta between this snapshot (after) and a prior snapshot (before).
- #free_bytes : UInt64
- #heap_size : UInt64
- #timestamp : ::Time::Instant
- #total_bytes : UInt64
- #unmapped_bytes : UInt64
Instance methods inherited from class Object
try?(&)try? try?
Constructor Detail
def self.new(total_bytes : UInt64, bytes_since_gc : UInt64, heap_size : UInt64, free_bytes : UInt64, unmapped_bytes : UInt64, timestamp : ::Time::Instant = ::Time.instant)
#
Instance Method Detail
Computes delta between this snapshot (after) and a prior snapshot (before).