Max Moroz | 3a92890 | 2018-05-15 14:39:50 | [diff] [blame] | 1 | # Code Coverage in Chromium |
| 2 | |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 3 | ### Coverage Dashboard: [https://analysis.chromium.org/p/chromium/coverage] |
Yuke Liao | d3b4627 | 2018-03-14 18:25:14 | [diff] [blame] | 4 | |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 5 | Table of contents: |
Max Moroz | 3a92890 | 2018-05-15 14:39:50 | [diff] [blame] | 6 | |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 7 | - [Coverage Infrastructure](#coverage-infra) |
| 8 | * [Coverage Builders](#coverage-builders) |
| 9 | * [Coverage Service](#coverage-service) |
| 10 | * [Coverage Clients](#coverage-clients) |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 11 | - [Coverage Script](#coverage-script) |
| 12 | - [Workflow](#workflow) |
| 13 | * [Step 0 Download Tooling](#step-0-download-tooling) |
| 14 | * [Step 1 Build](#step-1-build) |
| 15 | * [Step 2 Create Raw Profiles](#step-2-create-raw-profiles) |
| 16 | * [Step 3 Create Indexed Profile](#step-3-create-indexed-profile) |
| 17 | * [Step 4 Create Coverage Reports](#step-4-create-coverage-reports) |
Max Moroz | d73e45f | 2018-04-24 18:32:47 | [diff] [blame] | 18 | - [Contacts](#contacts) |
| 19 | - [FAQ](#faq) |
Yuke Liao | d3b4627 | 2018-03-14 18:25:14 | [diff] [blame] | 20 | |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 21 | Chromium uses source-based code coverage for clang-compiled languages such as |
| 22 | C++. This [documentation] explains how to use Clang’s source-based coverage |
| 23 | features in general. |
Yuke Liao | d3b4627 | 2018-03-14 18:25:14 | [diff] [blame] | 24 | |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 25 | In this document, we first introduce the code coverage infrastructure that |
| 26 | continuously generates code coverage information for the whole codebase and for |
| 27 | specific CLs in Gerrit. For the latter, refer to |
| 28 | [code\_coverage\_in\_gerrit.md](code_coverage_in_gerrit.md) |
| 29 | We then present a script that can be used to locally generate code coverage |
| 30 | reports with one command, and finally we provide a description of the |
| 31 | process of producing these reports. |
| 32 | |
| 33 | ## Coverage Infrastructure |
| 34 | |
| 35 | ![coverage infra diagram] |
| 36 | |
| 37 | There are 3 layers in the system: |
| 38 | |
| 39 | ### Coverage Builders |
| 40 | |
| 41 | The first layer is the LUCI builders that |
| 42 | - build instrumented targets, |
| 43 | - run the instrumented tests, |
| 44 | - merge the results into single streams, |
| 45 | - upload data to cloud storage. |
| 46 | |
| 47 | There are two types of builder: |
| 48 | |
| 49 | CI Builder |
| 50 | |
| 51 | The Code-coverage CI Builders periodically build all the test targets and fuzzer |
| 52 | targets for a given platform and instrument all available source files. Then |
| 53 | save the coverage data to a dedicated storage bucket. |
| 54 | |
| 55 | CQ Builder |
| 56 | |
| 57 | The code coverage CQ builders instrument only the files changed for a given CL. |
| 58 | more information about per-cl coverage info in [this |
| 59 | doc](code_coverage_in_gerrit.md) |
| 60 | |
| 61 | ### Coverage Service |
| 62 | |
| 63 | The second layer in the system consists of an AppEngine application that |
| 64 | consumes the coverage data from the builders above, structures it and stores it |
| 65 | in cloud datastore. It then serves the information to the clients below. |
| 66 | |
| 67 | ### Coverage Clients |
| 68 | |
| 69 | In the last layer we currently have two clients that consume the service: |
| 70 | |
| 71 | #### Coverage Dashboard |
| 72 | |
| 73 | The [coverage dashboard] front end is hosted in the same application as the |
| 74 | service above. |
| 75 | It shows the full-code coverage reports with links to the builds that generated |
| 76 | them, as well as per-directory and per-component aggregation, and can be drilled |
| 77 | down to the single line of code level of detail. |
| 78 | |
| 79 | Refer tho the following screenshots, or this [18-second video |
| 80 | tutorial](https://www.youtube.com/watch?v=eX7im2_3YfA) |
| 81 | |
| 82 | ##### Project View |
| 83 | |
| 84 | ![coverage dashboard main view] |
| 85 | |
| 86 | ##### Directory View |
| 87 | |
| 88 | ![coverage dashboard directory view] |
| 89 | |
| 90 | ##### Component View |
| 91 | |
| 92 | ![coverage dashboard component view] |
| 93 | |
| 94 | ##### Source View |
| 95 | |
| 96 | When you click on a particular source file in one of the views above, you can check |
| 97 | per-line coverage information such as |
| 98 | |
| 99 | - Uncovered / Covered line fragments, lines and code blocks. This information can be |
| 100 | useful to identify areas of code that lack test coverage. |
| 101 | - Per-line hit counts indicating how many times this line was hit by all tested targets. |
| 102 | This information can be useful to determine hot spots in your code. |
| 103 | - Potentially dead code. See [dead code example]. |
| 104 | |
| 105 | ![coverage dashboard file view] |
| 106 | |
| 107 | #### Gerrit Coverage View |
| 108 | |
| 109 | The other client supported at the moment is the gerrit plugin for code coverage. |
| 110 | |
| 111 | ![gerrit coverage view] |
| 112 | |
| 113 | See [this doc](code_coverage_in_gerrit.md) for information about the feature |
| 114 | that allows gerrit to display code coverage information generated for a given CL |
| 115 | by CQ bot. Or see this |
| 116 | [15-second video tutorial](https://www.youtube.com/watch?v=cxXlYcSgIPE) |
Yuke Liao | d3b4627 | 2018-03-14 18:25:14 | [diff] [blame] | 117 | |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 118 | ## Coverage Script |
| 119 | The [coverage script] automates the process described below and provides a |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 120 | one-stop service to generate code coverage reports locally in just one command. |
Yuke Liao | d3b4627 | 2018-03-14 18:25:14 | [diff] [blame] | 121 | |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 122 | This script is currently supported on Linux, Mac, iOS and ChromeOS platforms. |
| 123 | |
| 124 | Here is an example usage: |
| 125 | |
Yuke Liao | d3b4627 | 2018-03-14 18:25:14 | [diff] [blame] | 126 | ``` |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 127 | $ gn gen out/coverage \ |
Max Moroz | a5a9527 | 2018-08-31 16:20:55 | [diff] [blame] | 128 | --args='use_clang_coverage=true is_component_build=false dcheck_always_on=true' |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 129 | $ python tools/code_coverage/coverage.py \ |
| 130 | crypto_unittests url_unittests \ |
| 131 | -b out/coverage -o out/report \ |
| 132 | -c 'out/coverage/crypto_unittests' \ |
| 133 | -c 'out/coverage/url_unittests --gtest_filter=URLParser.PathURL' \ |
| 134 | -f url/ -f crypto/ |
| 135 | ``` |
| 136 | The command above builds `crypto_unittests` and `url_unittests` targets and then |
Max Moroz | a5a9527 | 2018-08-31 16:20:55 | [diff] [blame] | 137 | runs them individually with their commands and arguments specified by the `-c` flag. |
Abhishek Arya | af9811f2 | 2018-05-11 22:17:48 | [diff] [blame] | 138 | For `url_unittests`, it only runs the test `URLParser.PathURL`. The coverage report |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 139 | is filtered to include only files and sub-directories under `url/` and `crypto/` |
| 140 | directories. |
| 141 | |
Abhishek Arya | af9811f2 | 2018-05-11 22:17:48 | [diff] [blame] | 142 | Aside from automating the process, this script provides visualization features to |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 143 | view code coverage breakdown by directories and by components, similar to the |
| 144 | views in the [coverage dashboard](#coverage-dashboard) above. |
Abhishek Arya | af9811f2 | 2018-05-11 22:17:48 | [diff] [blame] | 145 | |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 146 | ## Workflow |
| 147 | This section presents the workflow of generating code coverage reports using two |
| 148 | unit test targets in Chromium repo as an example: `crypto_unittests` and |
| 149 | `url_unittests`, and the following diagram shows a step-by-step overview of the |
| 150 | process. |
| 151 | |
| 152 |  |
| 153 | |
| 154 | ### Step 0 Download Tooling |
| 155 | Generating code coverage reports requires llvm-profdata and llvm-cov tools. |
| 156 | Currently, these two tools are not part of Chromium’s Clang bundle, |
| 157 | [coverage script] downloads and updates them automatically, you can also |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 158 | download the tools manually ([tools link]). |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 159 | |
| 160 | ### Step 1 Build |
| 161 | In Chromium, to compile code with coverage enabled, one needs to add |
| 162 | `use_clang_coverage=true` and `is_component_build=false` GN flags to the args.gn |
| 163 | file in the build output directory. Under the hood, they ensure |
| 164 | `-fprofile-instr-generate` and `-fcoverage-mapping` flags are passed to the |
| 165 | compiler. |
| 166 | |
| 167 | ``` |
| 168 | $ gn gen out/coverage \ |
| 169 | --args='use_clang_coverage=true is_component_build=false' |
| 170 | $ gclient runhooks |
Max Moroz | f5b31fcd | 2018-08-10 21:55:48 | [diff] [blame] | 171 | $ autoninja -C out/coverage crypto_unittests url_unittests |
Yuke Liao | d3b4627 | 2018-03-14 18:25:14 | [diff] [blame] | 172 | ``` |
| 173 | |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 174 | ### Step 2 Create Raw Profiles |
Yuke Liao | bc35726b | 2018-10-31 22:16:21 | [diff] [blame] | 175 | The next step is to run the instrumented binaries. When the program exits, it |
Abhishek Arya | af9811f2 | 2018-05-11 22:17:48 | [diff] [blame] | 176 | writes a raw profile for each process. Because Chromium runs tests in |
| 177 | multiple processes, the number of processes spawned can be as many as a few |
| 178 | hundred, resulting in the generation of a few hundred gigabytes’ raw |
| 179 | profiles. To limit the number of raw profiles, `%Nm` pattern in |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 180 | `LLVM_PROFILE_FILE` environment variable is used to run tests in multi-process |
| 181 | mode, where `N` is the number of raw profiles. With `N = 4`, the total size of |
| 182 | the raw profiles are limited to a few gigabytes. |
| 183 | |
| 184 | ``` |
| 185 | $ export LLVM_PROFILE_FILE=”out/report/crypto_unittests.%4m.profraw” |
| 186 | $ ./out/coverage/crypto_unittests |
| 187 | $ ls out/report/ |
| 188 | crypto_unittests.3657994905831792357_0.profraw |
| 189 | ... |
| 190 | crypto_unittests.3657994905831792357_3.profraw |
| 191 | ``` |
| 192 | |
| 193 | ### Step 3 Create Indexed Profile |
| 194 | Raw profiles must be indexed before generating code coverage reports, and this |
| 195 | is done using the `merge` command of `llvm-profdata` tool, which merges multiple |
Abhishek Arya | af9811f2 | 2018-05-11 22:17:48 | [diff] [blame] | 196 | raw profiles (.profraw) and indexes them to create a single profile (.profdata). |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 197 | |
| 198 | At this point, all the raw profiles can be thrown away because their information |
Abhishek Arya | af9811f2 | 2018-05-11 22:17:48 | [diff] [blame] | 199 | is already contained in the indexed profile. |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 200 | |
| 201 | ``` |
| 202 | $ llvm-profdata merge -o out/report/coverage.profdata \ |
| 203 | out/report/crypto_unittests.3657994905831792357_0.profraw |
| 204 | ... |
| 205 | out/report/crypto_unittests.3657994905831792357_3.profraw |
| 206 | out/report/url_unittests.714228855822523802_0.profraw |
| 207 | ... |
| 208 | out/report/url_unittests.714228855822523802_3.profraw |
| 209 | $ ls out/report/coverage.profdata |
| 210 | out/report/coverage.profdata |
| 211 | ``` |
| 212 | |
| 213 | ### Step 4 Create Coverage Reports |
| 214 | Finally, `llvm-cov` is used to render code coverage reports. There are different |
Abhishek Arya | af9811f2 | 2018-05-11 22:17:48 | [diff] [blame] | 215 | report generation modes, and all of them require the following as input: |
| 216 | - Indexed profile |
| 217 | - All built target binaries |
| 218 | - All exercised source files. |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 219 | |
Abhishek Arya | af9811f2 | 2018-05-11 22:17:48 | [diff] [blame] | 220 | For example, the following command can be used to generate per-file line-by-line |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 221 | code coverage report: |
| 222 | |
| 223 | ``` |
| 224 | $ llvm-cov show -output-dir=out/report -format=html \ |
| 225 | -instr-profile=out/report/coverage.profdata \ |
| 226 | -object=out/coverage/url_unittests \ |
| 227 | out/coverage/crypto_unittests |
| 228 | ``` |
| 229 | |
| 230 | For more information on how to use llvm-cov, please refer to the [guide]. |
Yuke Liao | d3b4627 | 2018-03-14 18:25:14 | [diff] [blame] | 231 | |
Max Moroz | d73e45f | 2018-04-24 18:32:47 | [diff] [blame] | 232 | ## Contacts |
| 233 | |
| 234 | ### Reporting problems |
Yuke Liao | d3b4627 | 2018-03-14 18:25:14 | [diff] [blame] | 235 | For any breakage report and feature requests, please [file a bug]. |
| 236 | |
Max Moroz | d73e45f | 2018-04-24 18:32:47 | [diff] [blame] | 237 | ### Mailing list |
Yuke Liao | bc35726b | 2018-10-31 22:16:21 | [diff] [blame] | 238 | For questions and general discussions, please join [code-coverage group]. |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 239 | |
Max Moroz | d73e45f | 2018-04-24 18:32:47 | [diff] [blame] | 240 | ## FAQ |
| 241 | |
| 242 | ### Can I use `is_component_build=true` for code coverage build? |
| 243 | |
| 244 | Yes, code coverage instrumentation works with both component and non-component |
| 245 | builds. Component build is usually faster to compile, but can be up to several |
| 246 | times slower to run with code coverage instrumentation. For more information, |
Max Moroz | c5e364a | 2018-04-25 23:19:49 | [diff] [blame] | 247 | see [crbug.com/831939]. |
| 248 | |
| 249 | ### I am getting some warnings while using the script, is that fine? |
| 250 | |
Abhishek Arya | af9811f2 | 2018-05-11 22:17:48 | [diff] [blame] | 251 | Usually this is not a critical issue, but in general we tend not to have any |
Max Moroz | c5e364a | 2018-04-25 23:19:49 | [diff] [blame] | 252 | warnings. Please check the list of [known issues], and if there is a similar |
| 253 | bug, leave a comment with the command you run, the output you get, and Chromium |
| 254 | revision you use. Otherwise, please [file a new issue] providing the same |
| 255 | information. |
| 256 | |
| 257 | ### How do crashes affect code coverage? |
| 258 | |
Max Moroz | a5a9527 | 2018-08-31 16:20:55 | [diff] [blame] | 259 | If a crash of any type occurs (e.g. Segmentation Fault or ASan error), the |
| 260 | crashing process might not dump coverage information necessary to generate |
Max Moroz | c5e364a | 2018-04-25 23:19:49 | [diff] [blame] | 261 | code coverage report. For single-process applications (e.g. fuzz targets), that |
Max Moroz | a5a9527 | 2018-08-31 16:20:55 | [diff] [blame] | 262 | means no coverage might be reported at all. For multi-process applications, the |
| 263 | report might be incomplete. It is important to fix the crash first. If this is |
Abhishek Arya | af9811f2 | 2018-05-11 22:17:48 | [diff] [blame] | 264 | happening only in the coverage instrumented build, please [file a bug]. |
Max Moroz | d73e45f | 2018-04-24 18:32:47 | [diff] [blame] | 265 | |
Max Moroz | a5a9527 | 2018-08-31 16:20:55 | [diff] [blame] | 266 | ### How do assertions affect code coverage? |
| 267 | |
| 268 | If a crash is caused by CHECK or DCHECK, the coverage dump will still be written |
| 269 | on the disk ([crrev.com/c/1172932]). However, if a crashing process calls the |
| 270 | standard [assert] directly or through a custom wrapper, the dump will not be |
| 271 | written (see [How do crashes affect code coverage?]). |
| 272 | |
Max Moroz | 63cd04d | 2018-05-02 16:40:23 | [diff] [blame] | 273 | ### Is it possible to obtain code coverage from a full Chromium build? |
| 274 | |
| 275 | Yes, with some important caveats. It is possible to build `chrome` target with |
| 276 | code coverage instrumentation enabled. However, there are some inconveniences |
| 277 | involved: |
| 278 | |
| 279 | * Linking may take a while |
| 280 | * The binary is huge (~4GB) |
| 281 | * The browser "works", but is noticeably slow and laggy |
| 282 | * The sandbox needs to be disabled (`--no-sandbox`) |
Max Moroz | 63cd04d | 2018-05-02 16:40:23 | [diff] [blame] | 283 | |
| 284 | For more information, please see [crbug.com/834781]. |
| 285 | |
Max Moroz | 3a92890 | 2018-05-15 14:39:50 | [diff] [blame] | 286 | ### Why do we see significantly different coverage reported on different revisions? |
| 287 | |
| 288 | There can be two possible scenarios: |
| 289 | |
| 290 | * It can be a one time flakiness due to a broken build or failing tests. |
| 291 | * It can be caused by extension of the test suite used for generating code |
| 292 | coverage reports. When we add new tests to the suite, the aggregate coverage |
| 293 | reported usually grows after that. |
| 294 | |
| 295 | ### How can I improve [coverage dashboard]? |
| 296 | |
| 297 | Source code of the dashboard is not open sourced at the moment, but if you are a |
| 298 | Googler, you should have access to the code-coverage repository. There is a |
| 299 | documentation and scripts for running it locally. To get access and report |
| 300 | issues, ping chrome-code-coverage@ list. |
| 301 | |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 302 | The code for the service and dashboard currently lives along with findit at |
| 303 | [this location](https://chromium.googlesource.com/infra/infra/+/master/appengine/findit/) |
| 304 | because of significant shared logic. |
| 305 | |
| 306 | The code used by the bots that generate the coverage data lives (among other |
| 307 | places) in the |
| 308 | [clang coverage recipe module](https://chromium.googlesource.com/chromium/tools/build/+/master/scripts/slave/recipe_modules/clang_coverage/) |
| 309 | |
Max Moroz | 3a92890 | 2018-05-15 14:39:50 | [diff] [blame] | 310 | ### Why is coverage for X not reported or unreasonably low, even though there is a test for X? |
| 311 | |
| 312 | There are several reasons why coverage reports can be incomplete or incorrect: |
| 313 | |
| 314 | * A particular test is not used for code coverage report generation. Please |
| 315 | check the [test suite], and if the test is missing, upload a CL to add it. |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 316 | * A test may have a build failure or a runtime crash. Please check the build |
| 317 | for that particular report (rightmost column on the [coverage dashboard]). |
Max Moroz | 3a92890 | 2018-05-15 14:39:50 | [diff] [blame] | 318 | If there is any failure, please upload a CL with the fix. If you can't fix it, |
| 319 | feel free to [file a bug]. |
| 320 | * A particular test may not be available on a particular platform. As of now, |
| 321 | only reports generated on Linux are available on the [coverage dashboard]. |
| 322 | |
Max Moroz | 3a92890 | 2018-05-15 14:39:50 | [diff] [blame] | 323 | ### Is coverage reported for the code executed inside the sandbox? |
| 324 | |
| 325 | Not at the moment until [crbug.com/842424] is resolved. We do not disable the |
| 326 | sandbox when running the tests. However, if there are any other non-sandbox'ed |
| 327 | tests for the same code, the coverage should be reported from those. For more |
| 328 | information, see [crbug.com/842424]. |
| 329 | |
Max Moroz | d73e45f | 2018-04-24 18:32:47 | [diff] [blame] | 330 | |
Max Moroz | a5a9527 | 2018-08-31 16:20:55 | [diff] [blame] | 331 | [assert]: http://man7.org/linux/man-pages/man3/assert.3.html |
Yuke Liao | bc35726b | 2018-10-31 22:16:21 | [diff] [blame] | 332 | [code-coverage group]: https://groups.google.com/a/chromium.org/forum/#!forum/code-coverage |
Max Moroz | 3a92890 | 2018-05-15 14:39:50 | [diff] [blame] | 333 | [code-coverage repository]: https://chrome-internal.googlesource.com/chrome/tools/code-coverage |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 334 | [coverage dashboard]: https://analysis.chromium.org/p/chromium/coverage |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 335 | [coverage script]: https://cs.chromium.org/chromium/src/tools/code_coverage/coverage.py |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 336 | [coverage infra diagram]: images/code_coverage_infra_diagram.png |
| 337 | [coverage dashboard file view]: images/code_coverage_dashboard_file_view.png |
| 338 | [coverage dashboard component view]: images/code_coverage_dashboard_component_view.png |
| 339 | [coverage dashboard directory view]: images/code_coverage_dashboard_directory_view.png |
| 340 | [coverage dashboard main view]: images/code_coverage_dashboard_main_view.png |
Max Moroz | 3a92890 | 2018-05-15 14:39:50 | [diff] [blame] | 341 | [crbug.com/821617]: https://crbug.com/821617 |
Max Moroz | c5e364a | 2018-04-25 23:19:49 | [diff] [blame] | 342 | [crbug.com/831939]: https://crbug.com/831939 |
Max Moroz | 63cd04d | 2018-05-02 16:40:23 | [diff] [blame] | 343 | [crbug.com/834781]: https://crbug.com/834781 |
Max Moroz | 3a92890 | 2018-05-15 14:39:50 | [diff] [blame] | 344 | [crbug.com/842424]: https://crbug.com/842424 |
Max Moroz | a5a9527 | 2018-08-31 16:20:55 | [diff] [blame] | 345 | [crrev.com/c/1172932]: https://crrev.com/c/1172932 |
Max Moroz | 3a92890 | 2018-05-15 14:39:50 | [diff] [blame] | 346 | [clang roll]: https://crbug.com/841908 |
Abhishek Arya | b23b1a7 | 2018-05-17 20:11:09 | [diff] [blame] | 347 | [dead code example]: https://chromium.googlesource.com/chromium/src/+/ac6e09311fcc7e734be2ef21a9ccbbe04c4c4706 |
Max Moroz | c5e364a | 2018-04-25 23:19:49 | [diff] [blame] | 348 | [documentation]: https://clang.llvm.org/docs/SourceBasedCodeCoverage.html |
Yuke Liao | 1ffc8cb6 | 2018-04-06 19:09:07 | [diff] [blame] | 349 | [file a bug]: https://bugs.chromium.org/p/chromium/issues/entry?components=Tools%3ECodeCoverage |
Max Moroz | c5e364a | 2018-04-25 23:19:49 | [diff] [blame] | 350 | [file a new issue]: https://bugs.chromium.org/p/chromium/issues/entry?components=Tools%3ECodeCoverage |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 351 | [gerrit coverage view]: images/code_coverage_uncovered_lines.png |
Max Moroz | c5e364a | 2018-04-25 23:19:49 | [diff] [blame] | 352 | [guide]: http://llvm.org/docs/CommandGuide/llvm-cov.html |
Max Moroz | a5a9527 | 2018-08-31 16:20:55 | [diff] [blame] | 353 | [How do crashes affect code coverage?]: #how-do-crashes-affect-code-coverage |
Max Moroz | c5e364a | 2018-04-25 23:19:49 | [diff] [blame] | 354 | [known issues]: https://bugs.chromium.org/p/chromium/issues/list?q=component:Tools%3ECodeCoverage |
Roberto Carrillo | 3b56786 | 2019-01-30 19:01:25 | [diff] [blame^] | 355 | [tools link]: https://storage.googleapis.com/chromium-browser-clang-staging/ |
Max Moroz | 3a92890 | 2018-05-15 14:39:50 | [diff] [blame] | 356 | [test suite]: https://cs.chromium.org/chromium/src/tools/code_coverage/test_suite.txt |