Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
59a2f482
Commit
59a2f482
authored
Apr 17, 2014
by
Paul Sokolovsky
Browse files
unix: Make mem_info() dump GC info too.
mem_info() is already pretty hacky, let it be more hacky.
parent
eb2fc978
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/main.c
View file @
59a2f482
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment