diff options
author | Max Moroz <mmoroz@chromium.org> | 2019-03-14 17:49:27 +0000 |
---|---|---|
committer | Max Moroz <mmoroz@chromium.org> | 2019-03-14 17:49:27 +0000 |
commit | a80d9ce5cfa1d109b895cd4837d0c1bb564775d7 (patch) | |
tree | ad1d817a44bc97824e2839cc1056a6029c83491b /llvm/docs/CommandGuide | |
parent | 0d8df9832846c1fa0fc83282cdac78f2c01e31b2 (diff) | |
download | bcm5719-llvm-a80d9ce5cfa1d109b895cd4837d0c1bb564775d7.tar.gz bcm5719-llvm-a80d9ce5cfa1d109b895cd4837d0c1bb564775d7.zip |
Speeding up llvm-cov export with multithreaded renderFiles implementation.
Summary:
CoverageExporterJson::renderFiles accounts for most of the execution time given a large profdata file with multiple binaries.
Proposed solution is to generate JSON for each file in parallel and sort at the end to preserve deterministic output. Also added flags to skip generating parts of the output to trim the output size.
Patch by Sajjad Mirza (@sajjadm).
Reviewers: Dor1s, vsk
Reviewed By: Dor1s, vsk
Subscribers: liaoyuke, mgrang, jdoerfert, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59277
llvm-svn: 356178
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-cov.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-cov.rst b/llvm/docs/CommandGuide/llvm-cov.rst index 6e90760cbaf..7cc7d3faf2e 100644 --- a/llvm/docs/CommandGuide/llvm-cov.rst +++ b/llvm/docs/CommandGuide/llvm-cov.rst @@ -419,3 +419,16 @@ OPTIONS .. option:: -ignore-filename-regex=<PATTERN> Skip source code files with file paths that match the given regular expression. + + .. option:: -skip-expansions + + Skip exporting macro expansion coverage data. + + .. option:: -skip-functions + + Skip exporting per-function coverage data. + + .. option:: -num-threads=N, -j=N + + Use N threads to export coverage data. When N=0, llvm-cov auto-detects an + appropriate number of threads to use. This is the default. |