gprof
Performance analysis tool for many programming languages. It profiles the function executions of a program. More information: <https://ftp.gnu.org/old-gnu/Manuals/gprof-2.9.1/html_mono/gprof.html>.
Install
- All systems
-
curl cmd.cat/gprof.sh
- Debian
-
apt-get install binutils - Ubuntu
-
apt-get install binutils -
Alpine
-
apk add binutils - Arch Linux
-
pacman -S binutils - Kali Linux
-
apt-get install binutils - CentOS
-
yum install binutils - Fedora
-
dnf install binutils - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install binutils - OS X
-
brew install binutils - Raspbian
-
apt-get install binutils - Docker
-
docker run cmd.cat/gprof gprofpowered by Commando
Performance analysis tool for many programming languages. It profiles the function executions of a program. More information: <https://ftp.gnu.org/old-gnu/Manuals/gprof-2.9.1/html_mono/gprof.html>.
-
Compile binary with gprof information and run it to get `gmon.out`:
gcc -pg program.c && ./a.out -
Run gprof to obtain profile output:
gprof -
Suppress profile field's description:
gprof -b -
Display routines that have zero usage:
gprof -bz
© tl;dr; authors and contributors