Skip to content
Snippets Groups Projects
Commit 429e3f07 authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Damien George
Browse files

unix: Make -v dump memory info at exit.

Also, move bytecode dumps to -v -v, because they're too verbose for just -v.
parent 8768f8ad
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ void mp_emit_glue_assign_bytecode(mp_raw_code_t *rc, byte *code, mp_uint_t len, ...@@ -67,7 +67,7 @@ void mp_emit_glue_assign_bytecode(mp_raw_code_t *rc, byte *code, mp_uint_t len,
DEBUG_printf("assign byte code: code=%p len=" UINT_FMT " n_pos_args=" UINT_FMT " n_kwonly_args=" UINT_FMT " flags=%x\n", code, len, n_pos_args, n_kwonly_args, (uint)scope_flags); DEBUG_printf("assign byte code: code=%p len=" UINT_FMT " n_pos_args=" UINT_FMT " n_kwonly_args=" UINT_FMT " flags=%x\n", code, len, n_pos_args, n_kwonly_args, (uint)scope_flags);
#endif #endif
#if MICROPY_DEBUG_PRINTERS #if MICROPY_DEBUG_PRINTERS
if (mp_verbose_flag > 0) { if (mp_verbose_flag >= 2) {
mp_bytecode_print(rc, n_pos_args + n_kwonly_args, code, len); mp_bytecode_print(rc, n_pos_args + n_kwonly_args, code, len);
} }
#endif #endif
......
...@@ -506,6 +506,10 @@ int main(int argc, char **argv) { ...@@ -506,6 +506,10 @@ int main(int argc, char **argv) {
ret = do_repl(); ret = do_repl();
} }
if (mp_verbose_flag) {
mem_info(0, NULL);
}
mp_deinit(); mp_deinit();
#if MICROPY_ENABLE_GC && !defined(NDEBUG) #if MICROPY_ENABLE_GC && !defined(NDEBUG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment