module
Godot::DispatchProfiler
Overview
DispatchProfiler: Nanosecond execution profiler for Crystal method dispatches and virtual callbacks.
Enabled via -Dprofile_dispatches (or --profile-dispatches in Lapis CLI).
Tracks call counts, total elapsed nanoseconds, minimum, maximum, and average execution times for exported Crystal methods, virtual lifecycle hooks (_process, _physics_process), and signal callbacks.
Defined in:
libgodot/diagnostics/dispatch_profiler.crClass Method Summary
- .dump_profile(io : IO = STDOUT, top_n : Int32 = 20) : Void
- .enabled=(enabled : Bool)
- .enabled? : Bool
- .metrics : Hash(String, ProfileMetric)
- .record(class_name : String, method_name : String, elapsed_ns : Float64) : Void
- .reset! : Void