You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A tracefile is made up of several human-readable lines of text, divided into sections. If available, a tracefile begins with the testname which is stored in the following format:
82
+
```text
83
+
A tracefile is made up of several human-readable lines of text, divided into
84
+
sections. If available, a tracefile begins with the testname which is stored in
85
+
the following format:
72
86
73
87
TN:<test name>
74
88
75
-
For each source file referenced in the .da file, there is a section containing filename and coverage data:
89
+
For each source file referenced in the .da file, there is a section containing
90
+
filename and coverage data:
76
91
77
92
SF:<absolute path to the source file>
78
93
@@ -92,31 +107,42 @@ Branch coverage information is stored which one line per branch:
Block number and branch number are gcc internal IDs for the branch. Taken is either '-' if the basic block containing the branch was never executed or a number indicating how often that branch was taken.
110
+
Block number and branch number are gcc internal IDs for the branch. Taken is
111
+
either '-' if the basic block containing the branch was never executed or a
112
+
number indicating how often that branch was taken.
96
113
97
114
Branch coverage summaries are stored in two lines:
98
115
99
116
BRF:<number of branches found> BRH:<number of branches hit>
100
117
101
-
Then there is a list of execution counts for each instrumented line (i.e. a line which resulted in executable code):
118
+
Then there is a list of execution counts for each instrumented line (i.e. a
119
+
line which resulted in executable code):
102
120
103
121
DA:<line number>,<execution count>[,<checksum>]
104
122
105
-
Note that there may be an optional checksum present for each instrumented line. The current geninfo implementation uses an MD5 hash as checksumming algorithm.
123
+
Note that there may be an optional checksum present for each instrumented line.
124
+
The current geninfo implementation uses an MD5 hash as checksumming algorithm.
106
125
107
-
At the end of a section, there is a summary about how many lines were found and how many were actually instrumented:
126
+
At the end of a section, there is a summary about how many lines were found and
127
+
how many were actually instrumented:
108
128
109
129
LH:<number of lines with a non-zero execution count> LF:<number of instrumented lines>
110
130
111
131
Each sections ends with:
112
132
113
133
end_of_record
114
134
115
-
In addition to the main source code file there are sections for all #included files which also contain executable code.
135
+
In addition to the main source code file there are sections for all #included
136
+
files which also contain executable code.
116
137
117
-
Note that the absolute path of a source file is generated by interpreting the contents of the respective .bb file (see gcov (1) for more information on this file type). Relative filenames are prefixed with the directory in which the .bb file is found.
138
+
Note that the absolute path of a source file is generated by interpreting the
139
+
contents of the respective .bb file (see gcov (1) for more information on this
140
+
file type). Relative filenames are prefixed with the directory in which the .bb
141
+
file is found.
118
142
119
-
Note also that symbolic links to the .bb file will be resolved so that the actual file path is used instead of the path to a link. This approach is necessary for the mechanism to work with the /proc/gcov files.
143
+
Note also that symbolic links to the .bb file will be resolved so that the
144
+
actual file path is used instead of the path to a link. This approach is
145
+
necessary for the mechanism to work with the /proc/gcov files.
0 commit comments