Effective implementation of algorithms (Master Thesis)
Effective and error-free implementation of algorithms
utils::memory_usage Namespace Reference

Functions

int getUsedMemoryKb ()

Function Documentation

int utils::memory_usage::getUsedMemoryKb ( )

Return the current allocated memory.

Warning:
this only counts memory allocated by malloc() (includes all STL structures and new() operator)
does not include shared objects
real memory usage may be bigger, because malloc() can keep some pieces of memory for later reuse
Returns:
currently used memory in kilobytes
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines