summaryrefslogtreecommitdiffstatshomepage
path: root/py/misc.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-01 23:15:47 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-03 18:55:23 +0200
commit02de0c57d233bf969ed3971c319a96dd9f998549 (patch)
tree043a92c90c6cd5aa928886ead41ed41b4ce4759f /py/misc.h
parent43f1c8080ae209f41b95a9a390f0596c454b30d9 (diff)
downloadmicropython-02de0c57d233bf969ed3971c319a96dd9f998549.tar.gz
micropython-02de0c57d233bf969ed3971c319a96dd9f998549.zip
Add new alloc metric: current_bytes_allocated.
Unlike total_bytes_allocated, this tracks m_free()'s too.
Diffstat (limited to 'py/misc.h')
-rw-r--r--py/misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/misc.h b/py/misc.h
index 9f83ab526f..383d3986a7 100644
--- a/py/misc.h
+++ b/py/misc.h
@@ -32,6 +32,7 @@ void *m_realloc(void *ptr, int old_num_bytes, int new_num_bytes);
void m_free(void *ptr, int num_bytes);
int m_get_total_bytes_allocated(void);
+int m_get_current_bytes_allocated(void);
/** unichar / UTF-8 *********************************************/