Function crude_profiler::push [] [src]

pub fn push(task: &'static str) -> Guard

Push a task to the stack of tasks. The task will continue until the Guard is dropped.

Example

let _g = crude_profiler::push("test one");
println!("{}", crude_profiler::report());