1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/docs/CommandGuide
Vedant Kumar 78dfceef4b Retry: [llvm-profdata] Speed up merging by using a thread pool
Add a "-j" option to llvm-profdata to control the number of threads used.
Auto-detect NumThreads when it isn't specified, and avoid spawning threads when
they wouldn't be beneficial.

I tested this patch using a raw profile produced by clang (147MB). Here is the
time taken to merge 4 copies together on my laptop:

  No thread pool: 112.87s user 5.92s system 97% cpu 2:01.08 total
  With 2 threads: 134.99s user 26.54s system 164% cpu 1:33.31 total

Changes since the initial commit:

  - When handling odd-length inputs, call ThreadPool::wait() before merging the
    last profile. Should fix a race/off-by-one (see r275937).

Differential Revision: https://reviews.llvm.org/D22438

llvm-svn: 275938
2016-07-19 01:17:20 +00:00
..
bugpoint.rst bugpoint: add flag -verbose-errors 2016-07-15 23:15:06 +00:00
FileCheck.rst Document the ability to perform multi-line pattern matching in FileCheck. 2016-06-27 23:59:00 +00:00
index.rst
lit.rst Document standard substitutions defined by lit. 2016-04-04 17:14:45 +00:00
llc.rst [EABI] Add LLVM support for -meabi flag 2015-11-09 12:40:30 +00:00
lli.rst
llvm-ar.rst
llvm-as.rst
llvm-bcanalyzer.rst
llvm-build.rst
llvm-config.rst
llvm-cov.rst [llvm-cov] Optionally use a symbol demangler when preparing reports 2016-07-15 22:44:57 +00:00
llvm-diff.rst
llvm-dis.rst
llvm-dwarfdump.rst
llvm-extract.rst
llvm-lib.rst
llvm-link.rst
llvm-nm.rst [llvm-nm] Add -radix option 2016-02-10 17:51:39 +00:00
llvm-profdata.rst Retry: [llvm-profdata] Speed up merging by using a thread pool 2016-07-19 01:17:20 +00:00
llvm-readobj.rst [llvm-readobj] Add -elf-section-groups option 2016-01-26 19:46:39 +00:00
llvm-stress.rst
llvm-symbolizer.rst [llvm-symbolizer] Print out non-address lines verbatim. 2016-01-07 23:57:41 +00:00
opt.rst
tblgen.rst