Skip to main content

profile_scope

Macro profile_scope 

Source
macro_rules! profile_scope {
    ($name:expr, $target:expr) => { ... };
}
Expand description

Profile a scope with the Profiler trait.

Zero overhead when profiling is disabled (checked at runtime).

§Example

use reovim_kernel::profile_scope;

fn process_buffer() {
    profile_scope!("process_buffer", "mm");
    // ... work ...
}