gprof
Performance analysis tool for many programming languages. tldr-pages
On several platforms
Several platforms
Performance analysis tool for many programming languages. It profiles the function executions of a program.
Compile binary to default a.out with gprof information and run it to get gmon.out
gcc -pg program.c && ./a.outIdentifyRun gprof on default a.out and gmon.out to obtain profile output
gprofIdentifyRun gprof on a named binary
gprof path/to/binary path/to/gmon.outIdentifySuppress profile field's description
gprof --briefIdentifyDisplay routines that have zero usage
gprof --brief --display-unused-functionsIdentify