I have a C++ program running under linux. Is it possible to track its memory usage from the code? I am allocating new objects and running out of memory, so I want to keep track of how quickly I am using memory.
Low level Android Debugging
1:Using Python to add/remove Ubuntu login script items
Valgrinds module massif is exactly what you are looking for.. Microbenchmark showing process-switching faster than thread-switching; what's wrong? http://valgrind.org/docs/manual/ms-manual.html. C++ build systems [closed]API to translate group name to group id (gid)What scripts should not be ported from bash to python?
2:Vim + OmniCppComplete: Completing on Class Members which are STL containers
You could overload
::operator newto track the memory usage (normally, everything else goes through this).. How do I bring a processes window to the foreground on X Windows? (C++)
http://www.paulnettle.com/ click "code" then "MMGR" then the graphic this says "CODE" in red letters.. MMGR drops into your project. Include it in any source files where you want comprehensive memory tracking and it does the rest. It really is quite amazing despite the uselessness of his website..
You could try my experimental heap debugger ;-).