gcov: emit hotness colors to easily find hot code.
commit7581c57ac537d2e64175d6ba057b79ad77c824a9
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Sep 2018 08:49:09 +0000 (17 08:49 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Sep 2018 08:49:09 +0000 (17 08:49 +0000)
tree2c313b8db0db95ac676f624a871d05e5636412e6
parent78040ae8d3ef07c86234b771afa9da47018a6341
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264360 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/doc/gcov.texi
gcc/gcov.c