Header only library to get memory usage for windows, macOS, linux.
#include "memuse.hpp"or
#include "memuse/memuse_{win, mac, linux}"Sample code is here.
If you do not want to use inline functions, you can define without inlining by difining
CPP_MEMORY_USAGE_NO_INLINEbefore#include memuse.hpp".