Function embedded_profiling::set_profiler[][src]

pub unsafe fn set_profiler(
    profiler: &'static dyn EmbeddedProfiler
) -> Result<(), SetProfilerError>
Expand description

Sets the global profiler.

Safety

Must be completed with no other threads running or, in an embedded single core environment, with interrupts disabled.

Errors

returns Err(SetProfilerError) when a global profiler has already been configured