A simple C++11 memory monitor