|
From: Milian W. <ma...@mi...> - 2014-12-09 21:11:04
|
Hello all, with the consent of Julian, I'm happy to advertise a new tool of mine: heaptrack, a heap memory profiler for Linux: I've written a lengthy article about it with some details here: http://milianw.de/blog/heaptrack-a-heap-memory-profiler-for-linux The tl;dr; version is: - it's an alternative to heap profiling with Massif - it has a lower overhead - it collects much more data - it can runtime-attach to existing processes I'd like to see more people using it and giving me feedback. You'll need a CMake, a modern C++ compiler, parts of Boost, and libunwind. Then it's as easy as git://anongit.kde.org/heaptrack mkdir build cd build cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo make install to install heaptrack. Then, you can run it on your applications: heaptrack <yourapp> <your arguments> # ... heaptrack_print heaptrack.<yourapp>.$$.gz | less Or attach to a running process: heaptrack -p $(pidof <yourapp>) # ... ^C heaptrack_print heaptrack.<yourapp>.$$.gz | less The source code is tiny, and hopefully easy to read and hack. Patches welcome! Cheers, happy profiling -- Milian Wolff ma...@mi... http://milianw.de |