heaptrack Purpose Guide agents through heaptrack for heap allocation profiling on Linux: recording allocation traces, analysing with heaptrack print, identifying leaks and hotspots, and comparing runs. Triggers - "How do I find memory allocation hotspots in my C++ program?" - "My program uses too much memory — how do I find where?" - "How do I use heaptrack to detect memory leaks?" - "What is heaptrack and how does it differ from Valgrind massif?" - "How do I compare memory usage between two program versions?" - "heaptrack print output — how do I interpret it?" Workflow 1. Installation 2. Bas…