OS Manuals

/usr/bin/gcov-tool

the GNU compiler collection

From gcc 16.2.0-r3 (os), captured 2026-11-10 by running gcov-tool --help (exit 0). permalink

Also provided by 5 other package versions
Usage: gcov-tool [OPTION]... SUB_COMMAND [OPTION]...

Offline tool to handle gcda counts

  -h, --help                            Print this help, then exit
  -v, --version                         Print version number, then exit
  merge [options] <dir1> <dir2>         Merge coverage file contents
    -o, --output <dir>                  Output directory
    -v, --verbose                       Verbose mode
    -w, --weight <w1,w2>                Set weights (float point values)
  merge-stream [options] [<file>]       Merge coverage stream file (or stdin)
                                        and coverage file contents
    -v, --verbose                       Verbose mode
    -w, --weight <w1,w2>                Set weights (float point values)
  rewrite [options] <dir>               Rewrite coverage file contents
    -n, --normalize <int64_t>           Normalize the profile
    -o, --output <dir>                  Output directory
    -s, --scale <float or simple-frac>  Scale the profile counters
    -v, --verbose                       Verbose mode
  overlap [options] <dir1> <dir2>       Compute the overlap of two profiles
    -f, --function                      Print function level info
    -F, --fullname                      Print full filename
    -h, --hotonly                       Only print info for hot objects/functions
    -o, --object                        Print object level info
    -t <float>, --hot_threshold <float> Set the threshold for hotness
    -v, --verbose                       Verbose mode

For bug reporting instructions, please see:
<https://gcc.gnu.org/bugs/>.
Options (13)
OptionDescriptionSource
-h, --helpDisplay help about using gcov-tool (on the standard output), and exit without doing any further processing.help + man + man
-v, --versionDisplay the gcov-tool version number (on the standard output), and exit without doing any further processing.help + man + man
-o, --output dirSet the output profile directory.help + man + man
-w, --weight w1Set the merge weights of the directory1 and directory2, respectively.help + man + man
-n, --normalize int64_tNormalize the profile.help + man + man
-s, --scale floatScale the profile counters.help + man + man
-f, --functionPrint function level overlap score.help + man + man
-F, --fullnamePrint full gcda filename.help + man + man
--verboseSet the verbose mode. (in the manual page but not in --help)man
--hotonlyOnly print info for hot objects/functions. (in the manual page but not in --help)man
--objectPrint object level overlap score. (in the manual page but not in --help)man
-t float (in the manual page but not in --help)man
--hot_threshold floatSet the threshold for hot counter value. (in the manual page but not in --help)man

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