diff options
| author | Dan Halbert <halbert@halwitz.org> | 2017-07-23 15:32:05 -0400 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2017-07-23 15:32:05 -0400 |
| commit | f91493c97e20eef1d39a9cdc6c42a25cfd511734 (patch) | |
| tree | 7e7062c9c12220d798cfa154e0729b7cf3e6447b /py/stackctrl.h | |
| parent | af1ede930ba643d68850c541ef4075d5f7fd4f02 (diff) | |
Measure and report maximum stack usage. (#175)
Add max stack usage tracking, visible via debug module ustack.
Add separate cpp flag for enabling modules: MICROPY_DEBUG_MODULES
Diffstat (limited to 'py/stackctrl.h')
| -rw-r--r-- | py/stackctrl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/py/stackctrl.h b/py/stackctrl.h index e915f5000..2fb3784c5 100644 --- a/py/stackctrl.h +++ b/py/stackctrl.h @@ -45,4 +45,12 @@ void mp_stack_check(void); #endif +#if MICROPY_MAX_STACK_USAGE + +const char MP_MAX_STACK_USAGE_SENTINEL_BYTE; +void mp_stack_set_bottom(void* stack_bottom); +void mp_stack_fill_with_sentinel(void); + +#endif + #endif // __MICROPY_INCLUDED_PY_STACKCTRL_H__ |
