summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorMax Moroz <mmoroz@chromium.org>2019-03-14 17:49:27 +0000
committerMax Moroz <mmoroz@chromium.org>2019-03-14 17:49:27 +0000
commita80d9ce5cfa1d109b895cd4837d0c1bb564775d7 (patch)
treead1d817a44bc97824e2839cc1056a6029c83491b /llvm/docs/CommandGuide
parent0d8df9832846c1fa0fc83282cdac78f2c01e31b2 (diff)
downloadbcm5719-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.rst13
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.
OpenPOWER on IntegriCloud