OS Manuals

/usr/bin/gcov-6.5

the GNU compiler collection

From gcc-6 6.5.0-r7 (os), captured 2026-11-05 by running gcov-6.5 --help (exit 0). permalink

Usage: gcov [OPTION...] SOURCE|OBJ...

Print code coverage information.

  -a, --all-blocks                Show information for every basic block
  -b, --branch-probabilities      Include branch probabilities in output
  -c, --branch-counts             Output counts of branches taken
                                    rather than percentages
  -d, --display-progress          Display progress information
  -f, --function-summaries        Output summaries for each function
  -h, --help                      Print this help, then exit
  -i, --intermediate-format       Output .gcov file in intermediate text format
  -l, --long-file-names           Use long output file names for included
                                    source files
  -m, --demangled-names           Output demangled function names
  -n, --no-output                 Do not create an output file
  -o, --object-directory DIR|FILE Search for object files in DIR or called FILE
  -p, --preserve-paths            Preserve all pathname components
  -r, --relative-only             Only show data for relative sources
  -s, --source-prefix DIR         Source prefix to elide
  -u, --unconditional-branches    Show unconditional branch counts too
  -v, --version                   Print version number, then exit

For bug reporting instructions, please see:
<http://gcc.gnu.org/bugs.html>.
Options (15)
OptionDescriptionSource
-a, --all-blocksShow information for every basic blockhelp
-b, --branch-probabilitiesInclude branch probabilities in outputhelp
-c, --branch-countsOutput counts of branches taken rather than percentageshelp
-d, --display-progressDisplay progress informationhelp
-f, --function-summariesOutput summaries for each functionhelp
-h, --helpPrint this help, then exithelp
-i, --intermediate-formatOutput .gcov file in intermediate text formathelp
-l, --long-file-namesUse long output file names for included source fileshelp
-m, --demangled-namesOutput demangled function nameshelp
-n, --no-outputDo not create an output filehelp
-p, --preserve-pathsPreserve all pathname componentshelp
-r, --relative-onlyOnly show data for relative sourceshelp
-s, --source-prefix DIRSource prefix to elidehelp
-u, --unconditional-branchesShow unconditional branch counts toohelp
-v, --versionPrint version number, then exithelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.