OS Manuals

/usr/bin/gcov

Use GCC 14 as system gcc

From gcc-14-default 14.4.0-r1 (os), captured 2026-11-05 by running gcov --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
  -g, --conditions                Include modified condition/decision
                                    coverage in output
  -d, --display-progress          Display progress information
  -D, --debug			    Display debugging dumps
  -f, --function-summaries        Output summaries for each function
  -h, --help                      Print this help, then exit
  -j, --json-format               Output JSON intermediate format
                                    into .gcov.json.gz file
  -H, --human-readable            Output human readable numbers
  -k, --use-colors                Emit colored output
  -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
  -q, --use-hotness-colors        Emit perf-like colored output for hot lines
  -r, --relative-only             Only show data for relative sources
  -s, --source-prefix DIR         Source prefix to elide
  -t, --stdout                    Output to stdout instead of a file
  -u, --unconditional-branches    Show unconditional branch counts too
  -v, --version                   Print version number, then exit
  -w, --verbose                   Print verbose informations
  -x, --hash-filenames            Hash long pathnames

Obsolete options:
  -i, --json-format               Replaced with -j, --json-format
  -j, --human-readable            Replaced with -H, --human-readable

For bug reporting instructions, please see:
<https://gcc.gnu.org/bugs/>.
Options (23)
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
-g, --conditionsInclude modified condition/decision coverage in outputhelp
-d, --display-progressDisplay progress informationhelp
-D, --debugDisplay debugging dumpshelp
-f, --function-summariesOutput summaries for each functionhelp
-h, --helpPrint this help, then exithelp
-j, --json-formatOutput JSON intermediate format into .gcov.json.gz filehelp
-H, --human-readableOutput human readable numbershelp
-k, --use-colorsEmit colored outputhelp
-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
-q, --use-hotness-colorsEmit perf-like colored output for hot lineshelp
-r, --relative-onlyOnly show data for relative sourceshelp
-s, --source-prefix DIRSource prefix to elidehelp
-t, --stdoutOutput to stdout instead of a filehelp
-u, --unconditional-branchesShow unconditional branch counts toohelp
-v, --versionPrint version number, then exithelp
-w, --verbosePrint verbose informationshelp
-x, --hash-filenamesHash long pathnameshelp

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