pub fn stack_usage(stack: &[u8]) -> usizeExpand 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.