struct

MemoryBudget::AllocationMemorySnapshot

Inherits Struct < Value < Object

Measures Crystal allocator traffic using the maintained stdlib capability.

Constructors

measure_fiber_allocations

Measures the calling fiber; work delegated to other fibers has its own owner.

Source
measure_process_allocations

Measures all Crystal work in an isolated, joined process window.

Source
new(allocation_calls : UInt64, requested_bytes : UInt64)
Source

Class methods

available_capabilities

Declares the scopes actually implemented by the selected stdlib build.

Source

Instance methods

allocation_calls
Source
observations_for(policy : ScenarioMemoryPolicy) : Array(ObservedMemoryMeasurement)

Converts the selected counters into policy-scoped observations.

Source
requested_bytes
Source