aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/gcov.texi
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-09-17 10:49:09 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-09-17 08:49:09 +0000
commitd6683f89123f4badb0396d5c9adcc81f46494b0b (patch)
tree2c313b8db0db95ac676f624a871d05e5636412e6 /gcc/doc/gcov.texi
parent7dc58b50536223fefe18c38cde7c759ae528f934 (diff)
downloadgcc-d6683f89123f4badb0396d5c9adcc81f46494b0b.zip
gcc-d6683f89123f4badb0396d5c9adcc81f46494b0b.tar.gz
gcc-d6683f89123f4badb0396d5c9adcc81f46494b0b.tar.bz2
gcov: emit hotness colors to easily find hot code.
2018-09-17 Martin Liska <mliska@suse.cz> * doc/gcov.texi: Document new option --use-hotness-colors. * gcov.c (struct source_info): Declare new field. (source_info::source_info): Set default for maximum_count. (print_usage): Add new -q option. (process_args): Process it. (accumulate_line_info): Save src->maximum_count. (output_line_beginning): Make color line number if flag_use_hotness_colors is set. (output_line_details): Pass default argument value. (output_lines): Pass src->maximum_count. From-SVN: r264360
Diffstat (limited to 'gcc/doc/gcov.texi')
-rw-r--r--gcc/doc/gcov.texi8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi
index 98f4a87..3b1b38a 100644
--- a/gcc/doc/gcov.texi
+++ b/gcc/doc/gcov.texi
@@ -132,6 +132,7 @@ gcov [@option{-v}|@option{--version}] [@option{-h}|@option{--help}]
[@option{-n}|@option{--no-output}]
[@option{-o}|@option{--object-directory} @var{directory|file}]
[@option{-p}|@option{--preserve-paths}]
+ [@option{-q}|@option{--use-hotness-colors}]
[@option{-r}|@option{--relative-only}]
[@option{-s}|@option{--source-prefix} @var{directory}]
[@option{-t}|@option{--stdout}]
@@ -264,7 +265,6 @@ Use colors for lines of code that have zero coverage. We use red color for
non-exceptional lines and cyan for exceptional. Same colors are used for
basic blocks with @option{-a} option.
-
@item -l
@itemx --long-file-names
Create long file names for included source files. For example, if the
@@ -305,6 +305,12 @@ removed and unremoveable @file{..}
components renamed to @samp{^}. This is useful if sourcefiles are in several
different directories.
+@item -q
+@itemx --use-hotness-colors
+
+Emit perf-like colored output for hot lines. Legend of the color scale
+is printed at the very beginning of the output file.
+
@item -r
@itemx --relative-only
Only output information about source files with a relative pathname