Function embedded_profiling::profile[][src]

pub fn profile<T, R>(name: &'static str, target: T) -> R where
    T: Fn() -> R, 
Expand description

Profiles the given closure target with name name.

embedded_profiling::profile("profile println", || {
    println!("profiling this closure");
});