Stack information and analysis

ustack.max_stack_usage() → int

Return the maximum excursion of the stack so far.

ustack.stack_size() → int

Return the size of the entire stack. Same as in micropython.mem_info(), but returns a value instead of just printing it.

ustack.stack_usage() → int

Return how much stack is currently in use. Same as micropython.stack_use(); duplicated here for convenience.