How to Install and Uninstall heaptrack Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 10,2024

1. Install "heaptrack" package

Here is a brief guide to show you how to install heaptrack on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install heaptrack

2. Uninstall "heaptrack" package

This is a short guide on how to uninstall heaptrack on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the heaptrack package on Ubuntu 21.04 (Hirsute Hippo)

Package: heaptrack
Architecture: amd64
Version: 1.2.0-1build1
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Science Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 415
Depends: libboost-iostreams1.74.0 (>= 1.74.0), libboost-program-options1.74.0 (>= 1.74.0), libc6 (>= 2.14), libgcc-s1 (>= 3.0), libstdc++6 (>= 7), libheaptrack (= 1.2.0-1build1)
Filename: pool/universe/h/heaptrack/heaptrack_1.2.0-1build1_amd64.deb
Size: 110068
MD5sum: d57cd508df7337ef8cd89be060cdd6d9
SHA1: ec9cf64cc562a48991b6b778882c843d27948971
SHA256: ecd0569aa6c5f2d1cea846a4610cf30ad211e89f5446d6975407b23e8c8b0492
SHA512: f36e31215b2f481127b30f1c6cf8ea7c89e71c60ecc3aa41359c7f68e63142a6c4932339e650637ecad320fcf34270852bbc9ed7eee455b546cf0771d8ad99fd
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