gprof Command Examples

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.

gcc -pg {{program.c}} && ./a.out

gprof

gprof {{path/to/binary}} {{path/to/gmon.out}}

gprof -b

gprof -bz