mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
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:
@@ -34,8 +34,6 @@
|
||||
#if MICROPY_ENABLE_GC
|
||||
|
||||
void gc_collect(void) {
|
||||
// gc_dump_info();
|
||||
|
||||
gc_collect_start();
|
||||
gc_helper_collect_regs_and_stack();
|
||||
#if MICROPY_PY_THREAD
|
||||
@@ -45,9 +43,6 @@ void gc_collect(void) {
|
||||
mp_unix_mark_exec();
|
||||
#endif
|
||||
gc_collect_end();
|
||||
|
||||
// printf("-----\n");
|
||||
// gc_dump_info();
|
||||
}
|
||||
|
||||
#endif // MICROPY_ENABLE_GC
|
||||
|
||||
Reference in New Issue
Block a user