How To Install heaptrack on Fedora 36
Introduction
In this tutorial we learn how to install heaptrack
on Fedora 36.
What is heaptrack
Heaptrack traces all memory allocations and annotates these events with stack traces.Dedicated analysis tools then allow you to interpret the heap memory profile to - find hotspots that need to be optimized to reduce the memory footprint of your application - find memory leaks, i.e. locations that allocate memory which is never deallocated - find allocation hotspots, i.e. code locations that trigger a lot of memory allocation calls - find temporary allocations, which are allocations that are directly followed by their deallocation
We can use yum
or dnf
to install heaptrack
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install heaptrack.
Install heaptrack on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install heaptrack
using dnf
by running the following command:
sudo dnf -y install heaptrack
Install heaptrack on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install heaptrack
using yum
by running the following command:
sudo yum -y install heaptrack
How To Uninstall heaptrack on Fedora 36
To uninstall only the heaptrack
package we can use the following command:
sudo dnf remove heaptrack
heaptrack Package Contents on Fedora 36
/usr/bin/heaptrack
/usr/bin/heaptrack_gui
/usr/bin/heaptrack_print
/usr/include/heaptrack_api.h
/usr/lib/.build-id
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/38b3604c7fa321a23b2f7efa66112d81497c99
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/7fc113afe857bb8566864979423c15f471b006
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/54193d957b0e1a41965d63b641d187b24b4754
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/15d9c5133159cc43e39a938c8bfd5fa81c1053
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/756b888128d20013481c45f45bb1410d77d05a
/usr/lib64/heaptrack
/usr/lib64/heaptrack/libexec/heaptrack_interpret
/usr/lib64/heaptrack/libheaptrack_inject.so
/usr/lib64/heaptrack/libheaptrack_preload.so
/usr/share/applications/org.kde.heaptrack.desktop
/usr/share/icons/hicolor/128x128/apps/heaptrack.png
/usr/share/icons/hicolor/16x16/apps/heaptrack.png
/usr/share/icons/hicolor/22x22/apps/heaptrack.png
/usr/share/icons/hicolor/32x32/apps/heaptrack.png
/usr/share/icons/hicolor/48x48/apps/heaptrack.png
/usr/share/icons/hicolor/64x64/apps/heaptrack.png
/usr/share/licenses/heaptrack
/usr/share/licenses/heaptrack/COPYING
/usr/share/locale/ast/LC_MESSAGES/heaptrack.mo
/usr/share/locale/ca/LC_MESSAGES/heaptrack.mo
/usr/share/locale/ca@valencia/LC_MESSAGES/heaptrack.mo
/usr/share/locale/cs/LC_MESSAGES/heaptrack.mo
/usr/share/locale/da/LC_MESSAGES/heaptrack.mo
/usr/share/locale/de/LC_MESSAGES/heaptrack.mo
/usr/share/locale/en_GB/LC_MESSAGES/heaptrack.mo
/usr/share/locale/es/LC_MESSAGES/heaptrack.mo
/usr/share/locale/fr/LC_MESSAGES/heaptrack.mo
/usr/share/locale/gl/LC_MESSAGES/heaptrack.mo
/usr/share/locale/ko/LC_MESSAGES/heaptrack.mo
/usr/share/locale/nl/LC_MESSAGES/heaptrack.mo
/usr/share/locale/nn/LC_MESSAGES/heaptrack.mo
/usr/share/locale/pl/LC_MESSAGES/heaptrack.mo
/usr/share/locale/pt/LC_MESSAGES/heaptrack.mo
/usr/share/locale/pt_BR/LC_MESSAGES/heaptrack.mo
/usr/share/locale/ru/LC_MESSAGES/heaptrack.mo
/usr/share/locale/sk/LC_MESSAGES/heaptrack.mo
/usr/share/locale/sv/LC_MESSAGES/heaptrack.mo
/usr/share/locale/tr/LC_MESSAGES/heaptrack.mo
/usr/share/locale/uk/LC_MESSAGES/heaptrack.mo
/usr/share/locale/zh_CN/LC_MESSAGES/heaptrack.mo
/usr/share/metainfo/org.kde.heaptrack.appdata.xml
References
Summary
In this tutorial we learn how to install heaptrack
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).