KCachegrind is a free and open source profiler application for Linux. Using KCachegrind you can find the most time consuming parts in the execution of a program. It comes with call graph visualizations, source annotation, multiple visualization layouts, exported as image, converter scripts for OProfile, Perl, and PHP. It is released under GNU General Public License v2.0 or later.
How to Install KCachegrind on Ubuntu Linux
Open the terminal app (ctrl+alt+t) and run below commands one by one. It will install KCachegrind on your system.
sudo apt update
sudo apt install kcachegrind
After that start KCachegrind using below command or via show application command.
kcachegrind
Install KCachegrind via Flatpak:
KCachegrind is also available as a flatpak package. If you don’t have then install flatpak and flathub on your system and restart it after the installation.
After that in your terminal app run below flatpak KCachegrind install command.
flatpak install flathub org.kde.kcachegrind
You can open KCachegrind using
flatpak run org.kde.kcachegrind
And uninstall KCachegrind app using
sudo flatpak uninstall org.kde.kcachegrind
That’s it.