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.cr

Class Method Summary

Class Method Detail

def self.dump_profile(io : IO = STDOUT, top_n : Int32 = 20) : Void #

def self.enabled=(enabled : Bool) #

def self.enabled? : Bool #

def self.metrics : Hash(String, ProfileMetric) #

def self.record(class_name : String, method_name : String, elapsed_ns : Float64) : Void #

def self.reset! : Void #