diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-20 22:10:27 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-20 22:24:43 +0300 |
commit | b76fd842f0299a1b5a937cb3f16bc11ccb723bb8 (patch) | |
tree | e8fca7693d632efc075775ec8496a2ad2c283d18 /unix | |
parent | 643284fc8e7cec935f13c50ecde854932a28cee8 (diff) | |
download | micropython-b76fd842f0299a1b5a937cb3f16bc11ccb723bb8.tar.gz micropython-b76fd842f0299a1b5a937cb3f16bc11ccb723bb8.zip |
unix mem_info(): Dump GC info only if it's enabled.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/main.c b/unix/main.c index 940fe48c14..e4536f381c 100644 --- a/unix/main.c +++ b/unix/main.c @@ -250,7 +250,9 @@ int usage(char **argv) { mp_obj_t mem_info(void) { printf("mem: total=%d, current=%d, peak=%d\n", m_get_total_bytes_allocated(), m_get_current_bytes_allocated(), m_get_peak_bytes_allocated()); +#if MICROPY_ENABLE_GC gc_dump_info(); +#endif return mp_const_none; } |