pub fn profile<T, R>(name: &'static str, target: T) -> R where T: Fn() -> R,
Profiles the given closure target with name name.
target
name
embedded_profiling::profile("profile println", || { println!("profiling this closure"); });