py/gc: Make gc_dump_info/gc_dump_alloc_table take a printer as argument.
So that callers can redirect the output if needed. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -167,7 +167,7 @@ STATIC int parse_compile_execute(const void *source, mp_parse_input_kind_t input
|
||||
#if MICROPY_ENABLE_GC
|
||||
// run collection and print GC info
|
||||
gc_collect();
|
||||
gc_dump_info();
|
||||
gc_dump_info(&mp_plat_print);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user