From 7fa75105807608b34d59ed44f63eef994129622f Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Tue, 11 Jul 2017 01:23:29 +0000 Subject: [llvm-cov] Add a cl::opt to control the number of threads When an output directory is specified, llvm-cov spawns some threads to speed up the process of writing out file reports. Add an option which allows users to control how many threads llvm-cov uses. A CommandGuide.rst update + test is included. llvm-svn: 307609 --- llvm/docs/CommandGuide/llvm-cov.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/docs/CommandGuide') diff --git a/llvm/docs/CommandGuide/llvm-cov.rst b/llvm/docs/CommandGuide/llvm-cov.rst index ea2e625bc4d..47db8d04e0b 100644 --- a/llvm/docs/CommandGuide/llvm-cov.rst +++ b/llvm/docs/CommandGuide/llvm-cov.rst @@ -262,6 +262,12 @@ OPTIONS The demangler is expected to read a newline-separated list of symbols from stdin and write a newline-separated list of the same length to stdout. +.. option:: -num-threads=N, -j=N + + Use N threads to write file reports (only applicable when -output-dir is + specified). When N=0, llvm-cov auto-detects an appropriate number of threads to + use. This is the default. + .. option:: -line-coverage-gt= Show code coverage only for functions with line coverage greater than the -- cgit v1.2.3