1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 14:33:02 +02:00
llvm-mirror/test/tools/llvm-profdata
Vedant Kumar 498432e86b [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

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

llvm-svn: 275921
2016-07-18 22:02:39 +00:00
..
Inputs [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
c-general.test
compat.proftext
count-mismatch.proftext
gcc-gcov-sample-profile.test
general.proftext
hash-mismatch.proftext
inline-samples.test
input-filenames.test Retry^4 "[llvm-profdata] Add option to ingest filepaths from a file" 2016-06-07 22:47:31 +00:00
lit.local.cfg
multiple-inputs.test [llvm-profdata] Speed up merging by using a thread pool 2016-07-18 22:02:39 +00:00
overflow-instr.test
overflow-sample.test
raw-32-bits-be.test [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
raw-32-bits-le.test [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
raw-64-bits-be.test [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
raw-64-bits-le.test [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
raw-magic-but-no-header.test
raw-two-profiles.test [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
sample-profile-basic.test
text-dump.test
text-format-errors.test
value-prof.proftext [profile] show more statistics 2016-05-23 16:36:11 +00:00
weight-instr.test
weight-sample.test