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/html_mono/gprof.html.
- Compile binary to default
a.outwith gprof information and run it to getgmon.out:
gcc && ./a.out
- Run gprof on default
a.outandgmon.outto obtain profile output:
gprof
- Run gprof on a named binary:
gprof
- Suppress profile field's description:
gprof
- Display routines that have zero usage:
gprof
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
