ustack — Stack information and analysis

ustack.max_stack_usage()

Return the maximum excursion of the stack so far.

ustack.stack_size()

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()

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