#[skip]Expand description
Marks a function to be excluded from profiling when used with measure_all.
§Usage
#[cfg_attr(feature = "hotpath", hotpath::measure_all)]
impl MyStruct {
fn important_method(&self) {
// This will be measured
}
#[cfg_attr(feature = "hotpath", hotpath::skip)]
fn not_so_important_method(&self) -> usize {
// This will NOT be measured
self.value
}
}§See Also
measure_all- Bulk instrumentation macromeasure- Individual function instrumentation