micropython/micropython — pull request #198 by pfalcon (2014-01-20 00:22:41+00:00)
Title: Expose memory stats functions via "micropython" module.

These are micropython.mem_total(), .mem_current(), .mem_peak(). These are 3
individual functions with simple scalar return value to make sure that
calls to these functions themselves have minimal (hopefully zero) impact on
memory allocation.