struct Lapis::Profiler::AllocationReport

Overview

Represents the comprehensive audit results of an allocation profiling execution.

Defined in:

libgodot/profiler/core/report.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

try?(&)
try?
try?

Constructor Detail

def self.new(name : String, iterations : Int32, warmup_cycles : Int32, bytes_allocated : Int64, duration : ::Time::Span, threshold_bytes : Int64 = 0_i64) #

Instance Method Detail

def bytes_allocated : Int64 #

def bytes_per_iteration : Float64 #

Calculates the average bytes allocated per loop iteration.


def duration : ::Time::Span #

def failure_message(expected_max : Int64 = 0_i64) : String #

Generates a detailed diagnostic failure report with actionable troubleshooting steps.


def iterations : Int32 #

def name : String #

def passed? : Bool #

Returns true if total allocations remained under the designated threshold.


def threshold_bytes : Int64 #

def throughput_ops_sec : Float64 #

Calculates loop throughput in operations (iterations) per second.


def to_s(io : IO) : Void #

Formats a single-line summary string for logging and CLI output.


def warmup_cycles : Int32 #

def zero_allocation? : Bool #

Returns true if exactly zero heap bytes were allocated during the execution.