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
m...@milianw.de
http://milianw.de

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to