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:
Damien George
2023-03-09 13:50:21 +11:00
parent f450e94ba0
commit b3c8ab37ec
12 changed files with 27 additions and 33 deletions

View File

@@ -186,7 +186,6 @@ void gc_collect(void) {
gc_collect_start();
gc_collect_root(&dummy, ((mp_uint_t)MP_STATE_THREAD(stack_top) - (mp_uint_t)&dummy) / sizeof(mp_uint_t));
gc_collect_end();
// gc_dump_info();
}
#if !MICROPY_READER_VFS