Add new alloc metric: current_bytes_allocated.

Unlike total_bytes_allocated, this tracks m_free()'s too.
This commit is contained in:
Paul Sokolovsky
2014-01-01 23:15:47 +02:00
parent 43f1c8080a
commit 02de0c57d2
2 changed files with 12 additions and 1 deletions

View File

@@ -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 *********************************************/