Skip to main content

stack_usage

Function stack_usage 

Source
pub fn stack_usage(stack: &[u8]) -> usize
Expand description

Measure a task stack’s high-water mark (plan.md §2.7/Phase 3): stacks are filled with 0xAA at spawn; the deepest byte a task wrote (anything else) marks how far it ran down. Returns the number of bytes used from the top.