Heaptrack: A Heap Memory Profiler for Linux
summary
Heaptrack is an open-source Linux heap profiler that records a stack trace for every allocation and reports number of allocations, peak bytes at each code location, and leaked bytes, while remaining notably faster than massif. It injects via the LD_PRELOAD trick and supports runtime attach, uses libunwind + libbacktrace to map IPs to functions/lines, and emits a format visualized by the Heaptrack GUI (and convertible to massif). Adds flame-graph and histogram views; GUI is work-in-progress but the collector already works on real applications.
AI-written summary · about
chapters (5)
- 0:00Start
- 3:02measure your throughput
- 4:27track the throughput
- 4:48adding a so-called flame graph visualization
- 7:08inject arbitrary code into your application
related talks
07mLightning talk- Heaptrack, A Heap Memory Profiler for Linux
01h 05mHow to Write a Heap Memory Profiler
01h 02mProfiling with Heaptrack and Hotspot on Embedded Linux
24mLow-overhead memory allocation tracking
48mProfiling data structures
01h 29mModern Linux C++ Debugging Tools - Under the Covers
31mFantastic tracepoints and where to find them
35mLinux Tracing updates
