Details
-
Task
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
Description
1. dgcov should be supported with gcc version gcc 4.9.4+ since there is -i option introduced.
2. json format found from here that is introduced with 9.1.0. Looking from all release changes for 9.1.0
The following improvements to the gcov command-line utility have been made.
|
|
The gcov tool received a new option --use-hotness-colors (-q) that can provide perf-like coloring of hot functions.
|
The gcov tool has changed its intermediate format to a new JSON format.
|
and seems that in that version intermediate format was deprecated.
Additional links:
[1] Zulip analysis
[2] Support GCOV intermediate format
Attachments
Issue Links
- relates to
-
MDEV-20787 Script dgcov.pl does not work
-
- Closed
-
Test of patch - with appended commit message (about usage of gcc version <9 and >=9 - noted error in regex - so new patch will be)
# -DENABLE_GCOV=ON -DCMAKE_\{C_COMPILER=gcc,CXX_COMPILER=g++\}-7
$ cmake --build . -- -j8
****************
****************
@@ +4564,7 @@ class Item_ref :public Item_ident
: 4564: {
: 4566: }
: 4568: bool walk(Item_processor processor, bool walk_subquery, void *arg)
: 4569: {
$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~18.04) 9.4.0
$ g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~18.04) 9.4.0
# Remove old gcov (symlink to gcov-7)
# Make it symlink to gcov-9
# Remove old files
$ git clean -dffx
$ cmake . -DCMAKE_BUILD_TYPE=Debug -DPLUGIN_{ARCHIVE,TOKUDB,MROONGA,OQGRAPH,ROCKSDB,CONNECT,PERFSCHEMA,SPIDER,SPHINX}=NO -DENABLE_GCOV=ON -DCMAKE_\{C_COMPILER=gcc,CXX_COMPILER=g++\}-9
$ cmake --build . -- -j8
# Example of generated file: ./mysys/CMakeFiles/mysys.dir/list.c.gcda.gcov.json.gz
****************
****************
@@ +4564,7 @@ class Item_ref :public Item_ident
: 4564: {
: 4566: }
: 4568: bool walk(Item_processor processor, bool walk_subquery, void *arg)
: 4569: {
Same result as above.
New patch (removed unused line) : 5599795abe1faee79 serg