[][src]Function coarse_prof::enter

pub fn enter(name: &'static str) -> Guard

Manually enter a scope.

The returned instance of Guard should be dropped when leaving the scope.

Usually, it is more convenient to use the macro profile for including a scope in profiling, but in some special cases explicit entering/leaving can make sense.