class
Lapis::Profiler::AuditBuilder
- Lapis::Profiler::AuditBuilder
- Reference
- Object
Overview
Declarative Builder DSL for configuring allocation audits and profiling runs
Defined in:
libgodot/profiler/dsl/builder.crConstructors
Instance Method Summary
-
#assert_max_allocations(max : Int64 | Int32 = @max_bytes, file : String = __FILE__, line : Int32 = __LINE__, &) : AllocationReport
Executes the loop and raises AllocationViolationError if allocations exceed max_bytes
-
#assert_zero_allocation(file : String = __FILE__, line : Int32 = __LINE__, &) : AllocationReport
Executes the loop and raises AllocationViolationError if any bytes were allocated
-
#iterations(val : Int32) : self
Sets the number of measured hot loop iterations
- #iterations : Int32
- #iterations=(iterations : Int32)
-
#max_bytes(val : Int64 | Int32) : self
Sets the maximum permitted bytes allocated before failing
- #max_bytes : Int64
- #max_bytes=(max_bytes : Int64)
-
#name(val : String) : self
Sets the audit label or operation name
- #name : String
- #name=(name : String)
-
#profile(&) : AllocationReport
Runs the hot loop profiling probe and returns the resulting report
-
#warmup(val : Int32) : self
Sets the number of warm-up iterations
- #warmup_cycles : Int32
- #warmup_cycles=(warmup_cycles : Int32)
Instance methods inherited from class Object
try?(&)try? try?
Constructor Detail
Instance Method Detail
Executes the loop and raises AllocationViolationError if allocations exceed max_bytes
Executes the loop and raises AllocationViolationError if any bytes were allocated
Sets the maximum permitted bytes allocated before failing
Runs the hot loop profiling probe and returns the resulting report