Linux Command Directory
This directory of Linux commands is from Linux in a Nutshell, 5th Edition.
Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
gprof [options] [object_file]
Display the profile data for an object file. The file's symbol table is compared with the call graph profile file gmon.out (previously created by compiling with gcc -pg). Many of gprof's options take a symbol-specification argument, or symspec, to limit the option to specified files or functions. The symspec may be a filename, a function, or a line number. It can also be given as filename:function or filename:linenumber to specify a function or line number in a specific file. gprof expects filenames to contain a period and functions to not contain a period.
Do not display statically declared functions. Since their information might still be relevant, append it to the information about the functions loaded immediately before.
Do not display information about each field in the profile.
Consult the object file's text area to attempt to determine the program's static call graph. Display static-only parents and children with call counts of 0.
Specify whether C++ symbols should be demangled or not. They are demangled by default. If profiling a program built by a different compiler, you may need to specify the mangling style.
Print suggested function order based on profiling data.
Print suggested link line order for .o files based on profiling data. Read function name to object file mappings from file. This file can be created using the nm command.
Print summary information on datafiles, then exit.
Remove arcs between the routines from and to.
Don't print count statistics for symbols executed less than n times.
Propogate time statistics in call graph analysis.
Print profile statistics.
Print call graph analysis.
Summarize profile information in the file gmon.sum.
Print version and exit.
Print function index formatted to width n.
When printing annotated source, annotate every line in a basic block, not just the beginning.
Print annotated-source output to separate files instead of standard output. The annotated source for each source file is printed to filename-ann.
Include zero-usage calls.
Print annotated source code.
Print statistics on the number of times each function is called. When used with option -l, count basic-block execution.
Print only information about routine. Do not include time spent in other routines.
Set directory path to search for source files. The dirs argument may be given as a colon-separated list of directories.
Don't print annotated source code.
Print the path information when printing filenames.
Don't propogate time statistics in call graph analysis.
Don't print profile statistics
Don't print call graph analysis.
Print output in BSD style.
Don't print statistics on the number of times each function is called.