@@ -221,21 +221,21 @@ Point the web browser of your choice to the resulting index.html file.
221
221
222
222
$ lcov --directory path/to/my/testcase --capture --output-file app.info
223
223
224
- (LLVM users using the 'prodata path' will use a somewhat different
224
+ (LLVM users using the 'profdata path' will use a somewhat different
225
225
command for this step - see the discussion referenced above.)
226
226
227
227
If you want to collect Modified Condition / Decision Coverage (MD/DC)
228
228
date, then:
229
229
- you must use gcc/14.2 (or newer), or LLVM/18 (or newer)
230
230
- your GCC compile- and link command line must include flag
231
231
'-fcondition-coverage'.
232
- - LLVM users must use the 'prodata path' for coverage data collection,
232
+ - LLVM users must use the 'profdata path' for coverage data collection,
233
233
and your compile command line must include
234
234
'-fprofile-inst-generate -fcoverage-mapping -fcoverage-mcdc'.
235
235
See the above referenced discussion for details.
236
236
- your lcov and genhtml command line must include flag
237
237
'--mcdc-coverage'
238
- See the '--mcdc-coverage' section in the lcov and geninfo man pages.
238
+ See the '--mcdc-coverage' section in the genhtml and geninfo man pages.
239
239
240
240
Note that runtime coverage data exists only after the application has
241
241
been started and stopped at least once. Otherwise, no data will be found
@@ -418,7 +418,8 @@ LCOV features and capabilities fall into 7 major categories:
418
418
simple substitutions become complicated or unweildy.
419
419
v) select a subset of coverage data to display - e.g., to
420
420
use in a code review which wants to concentrate on only
421
- the changes caused by a particular commit or range of commits.
421
+ the changes caused by a particular commit or range of commits,
422
+ or to review changes in a particular release.
422
423
Sample script: select.pm
423
424
vi) keep track of environment and other settings - to aid
424
425
infrastructure debugging in more complicated use cases.
0 commit comments