diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-17 18:32:36 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-17 20:27:01 +0300 |
commit | 59a2f4828d809a47a71996791c216f5e2da91f6f (patch) | |
tree | fad8d317b703e988f4e1150b7d614c2f60ed30a3 /unix | |
parent | eb2fc9787a28554ac74995ab50cf326907f81ff0 (diff) | |
download | micropython-59a2f4828d809a47a71996791c216f5e2da91f6f.tar.gz micropython-59a2f4828d809a47a71996791c216f5e2da91f6f.zip |
unix: Make mem_info() dump GC info too.
mem_info() is already pretty hacky, let it be more hacky.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/main.c b/unix/main.c index d5b04d565b..2044e205e4 100644 --- a/unix/main.c +++ b/unix/main.c @@ -250,6 +250,7 @@ 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()); + gc_dump_info(); return mp_const_none; } |