Linux "gcov-tool" Command Line Options and Examples
offline gcda profile processing tool

gcov-tool is an offline tool to process gcc's gcda profile files. Current gcov-tool supports the following functionalities: * merge two sets of profiles with weights. * read one set of profile and rewrite profile contents.


Usage:

gcov-tool [-v|--version] [-h|--help]






Command Line Options:

--help
Display help about using gcov-tool (on the standard output), and exit without doing any further processing.
gcov-tool --help ...
--version
Display the gcov-tool version number (on the standard output), and exit without doing any further processing.mergeMerge two profile directories.
gcov-tool --version ...
--output
Set the output profile directory. Default output directory name is merged_profile.
gcov-tool --output ...
--verbose
Set the verbose mode.
gcov-tool --verbose ...
--weight
Set the merge weights of the directory1 and directory2, respectively. The default weights are 1 for both.rewriteRead the specified profile directory and rewrite to a new directory.
gcov-tool --weight ...
--normalize
Normalize the profile. The specified value is the max counter value in the new profile.
gcov-tool --normalize ...
-s
float_or_simple-frac_value
gcov-tool -s ...
--scale
Scale the profile counters. The specified value can be in floating point value, or simple fraction value form, such 1, 2,2/3, and 5/3.
gcov-tool --scale ...
--function
Print function level overlap score.
gcov-tool --function ...
--fullname
Print full gcda filename.
gcov-tool --fullname ...
--hotonly
Only print info for hot objects/functions.
gcov-tool --hotonly ...
--object
Print object level overlap score.
gcov-tool --object ...
--hot_threshold
Set the threshold for hot counter value.
gcov-tool --hot_threshold ...