re_tracing

Macro profile_function_if

Source
macro_rules! profile_function_if {
    ($($arg: tt)*) => { ... };
}
Expand description

Create a profile scope based on the function name, if the given condition holds true.

Call this at the very top of a potentially expensive function.