commit | d3b46273e30e56f055b20cec785974e7aa150000 | [log] [tgz] |
---|---|---|
author | Yuke Liao <[email protected]> | Wed Mar 14 18:25:14 2018 |
committer | Commit Bot <[email protected]> | Wed Mar 14 18:25:14 2018 |
tree | 3310ff7b78889353f80070a216bd60d7d2b71ffa | |
parent | 531782d0fea8bc8ba69adc9d2e0671c6644872df [diff] [blame] |
[Coverage] Add documentation for Clang source based code coverage. Change-Id: I6c3920ca92cf05b41fe69c74936cc0578841847f Bug: chromium:821851 Change-Id: I6c3920ca92cf05b41fe69c74936cc0578841847f Reviewed-on: https://chromium-review.googlesource.com/952296 Commit-Queue: Yuke Liao <[email protected]> Reviewed-by: Max Moroz <[email protected]> Cr-Commit-Position: refs/heads/master@{#543125}
diff --git a/tools/code_coverage/coverage.py b/tools/code_coverage/coverage.py index 1a2c86e..c30c225 100755 --- a/tools/code_coverage/coverage.py +++ b/tools/code_coverage/coverage.py
@@ -11,10 +11,9 @@ "use_clang_coverage=true" and "is_component_build=false" GN flags to args.gn file in your build output directory (e.g. out/coverage). - Clang Source-based Code Coverage requires "is_component_build=false" flag - because: There will be no coverage info for libraries in component builds and - "is_component_build" is set to true by "is_debug" unless it is explicitly set - to false. + Existing implementation requires "is_component_build=false" flag because + coverage info for dynamic libraries may be missing and "is_component_build" + is set to true by "is_debug" unless it is explicitly set to false. Example usage: