log_snapshot

Function log_snapshot 

Source
pub fn log_snapshot(snapshot: &EPSnapshot)
Expand description

Logs the given snapshot with the globally configured profiler.

let start = embedded_profiling::start_snapshot();
// (...)
if let Some(snapshot) = embedded_profiling::end_snapshot(start, "doc-example") {
    embedded_profiling::log_snapshot(&snapshot);
}