How to Install and Uninstall heaptrack Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 11,2024

1. Install "heaptrack" package

Please follow the step by step instructions below to install heaptrack on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install heaptrack

2. Uninstall "heaptrack" package

This is a short guide on how to uninstall heaptrack on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove heaptrack $ sudo apt autoclean && sudo apt autoremove

3. Information about the heaptrack package on Ubuntu 21.10 (Impish Indri)

Package: heaptrack
Architecture: amd64
Version: 1.2.0-1ubuntu1
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Science Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 335
Depends: libboost-iostreams1.74.0 (>= 1.74.0), libboost-program-options1.74.0 (>= 1.74.0), libc6 (>= 2.14), libgcc-s1 (>= 3.3.1), libstdc++6 (>= 7), libheaptrack (= 1.2.0-1ubuntu1)
Filename: pool/universe/h/heaptrack/heaptrack_1.2.0-1ubuntu1_amd64.deb
Size: 97684
MD5sum: 851328b364344c9d6032081cbb4533e3
SHA1: dbbcc3369fc1a39b71dd3d519c4e7dbc33c46a51
SHA256: b57cbdf19c24979032e92776910eaafe9d203e36ccc269629afdc3e0df3d5951
SHA512: 10409d750dd2883084f0a40176abeb6866445b7974cbed12ab89706d265c50570ff61cf77c406c400f4ea3320f44b0dc53980dc3ade00315f4ed36a0e7fb63a7
Homepage: https://github.com/KDE/heaptrack
Description-en: heap memory profiler for Linux
Heap memory usage profiler. It uses LD_PRELOAD to track all calls
to the core memory allocation functions and logs these occurrences.
Additionally, backtraces are obtained and logged. It can also
generate a historigram of allocation sizes over the number of
calls. Heaptrack measures the following:
.
* Heap memory consumption (like Massif).
* Number of calls to allocation functions (like callgrind).
* Total amount of memory allocated, ignoring deallocations.
* Leaked memory (like memcheck).
.
Heaptrack is notable for it's ability to attach to running processes,
for consuming substantially less memory than Valgrind, and for not
reducing an application's interactivity as much as Valgrind does.
Heaptrack is useful for debugging memory leaks and memory ballooning.
.
The package contains the command line tools.
Description-md5: 56d96531fdd564d2850fedeec3b1576e