From a80d9ce5cfa1d109b895cd4837d0c1bb564775d7 Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Thu, 14 Mar 2019 17:49:27 +0000 Subject: 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 --- llvm/docs/CommandGuide/llvm-cov.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'llvm/docs/CommandGuide') 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= 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. -- cgit v1.2.3