Skip to main content

stack_usage

Function stack_usage 

Source
pub fn stack_usage() -> Option<StackUsage>
Expand description

The deepest the stack has been since boot: info!("stack: {}", unprobe::stack_usage().unwrap()).

None in release builds, before init!, with Config::measure_stack off, or with an unusual stack layout. It scans the unused stack, which takes about a millisecond.