struct
Lapis::Profiler::AllocationReport
- Lapis::Profiler::AllocationReport
- Struct
- Value
- Object
Overview
Represents the comprehensive audit results of an allocation profiling execution.
Defined in:
libgodot/profiler/core/report.crConstructors
Instance Method Summary
- #bytes_allocated : Int64
-
#bytes_per_iteration : Float64
Calculates the average bytes allocated per loop iteration.
- #duration : ::Time::Span
-
#failure_message(expected_max : Int64 = 0_i64) : String
Generates a detailed diagnostic failure report with actionable troubleshooting steps.
- #iterations : Int32
- #name : String
-
#passed? : Bool
Returns true if total allocations remained under the designated threshold.
- #threshold_bytes : Int64
-
#throughput_ops_sec : Float64
Calculates loop throughput in operations (iterations) per second.
-
#to_s(io : IO) : Void
Formats a single-line summary string for logging and CLI output.
- #warmup_cycles : Int32
-
#zero_allocation? : Bool
Returns true if exactly zero heap bytes were allocated during the execution.
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
Generates a detailed diagnostic failure report with actionable troubleshooting steps.
Calculates loop throughput in operations (iterations) per second.
def zero_allocation? : Bool
#
Returns true if exactly zero heap bytes were allocated during the execution.