profile

Function profile 

Source
pub fn profile<F, R>(signature: Signature<'_>, f: F) -> R
where F: FnOnce() -> R,
Expand description

Times a closure and adds the measured time to Godot’s built-in profiler with the given signature, and then returns it’s return value.