profile_if

Macro profile_if 

Source
macro_rules! profile_if {
    ($condition:expr, $operation:expr => $block:block) => { ... };
    ($condition:expr, $name:expr, $category:expr => $block:block) => { ... };
}
Expand description

Conditional profiling that only activates when a condition is met