Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
5d48f234
Commit
5d48f234
authored
Jan 09, 2015
by
Damien George
Browse files
py: Make mem_info print correct remaining stack bytes.
parent
a9a08620
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/modmicropython.c
View file @
5d48f234
...
...
@@ -59,7 +59,7 @@ mp_obj_t mp_micropython_mem_info(mp_uint_t n_args, const mp_obj_t *args) {
m_get_total_bytes_allocated
(),
m_get_current_bytes_allocated
(),
m_get_peak_bytes_allocated
());
#endif
#if MICROPY_STACK_CHECK
printf
(
"stack: "
UINT_FMT
" out of "
INT_FMT
"
\n
"
,
mp_stack_usage
(),
MP_STATE_VM
(
stack_limit
)
-
mp_stack_usage
()
);
printf
(
"stack: "
UINT_FMT
" out of "
INT_FMT
"
\n
"
,
mp_stack_usage
(),
MP_STATE_VM
(
stack_limit
));
#else
printf
(
"stack: "
UINT_FMT
"
\n
"
,
mp_stack_usage
());
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment