1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/test/tools/llvm-profdata
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
..
Inputs [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
c-general.test [LLVM] Remove unwanted --check-prefix=CHECK from unit tests. NFC. 2016-04-19 23:51:52 +00:00
compat.proftext Add a compatibility test 2016-02-03 06:27:38 +00:00
count-mismatch.proftext [llvm-profdata] Improve error messaging when merging mismatched profile data 2015-11-17 22:08:53 +00:00
gcc-gcov-sample-profile.test SamplePGO - Sort samples by source location when emitting as text. 2015-11-19 15:33:08 +00:00
general.proftext Stop testing the unspecified order in which the OnDiskHashTable stores entries. 2016-03-26 02:02:59 +00:00
hash-mismatch.proftext
inline-samples.test SamplePGO - Sort samples by source location when emitting as text. 2015-11-19 15:33:08 +00:00
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 Retry: [llvm-profdata] Speed up merging by using a thread pool 2016-07-19 01:17:20 +00:00
overflow-instr.test [PGO] Handle and report overflow during profile merge for all types of data 2015-12-16 21:45:43 +00:00
overflow-sample.test [PGO] Handle and report overflow during profile merge for all types of data 2015-12-16 21:45:43 +00:00
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 [llvm-profdata] Add check for text profile formats and improve error reporting (2nd try) 2015-11-13 03:47:58 +00:00
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 SamplePGO - Add dump routines for LineLocation, SampleRecord and FunctionSamples 2015-11-13 20:24:28 +00:00
text-dump.test [PGO] Add --text option for llvm-profdata show|merge commands 2015-11-23 20:47:38 +00:00
text-format-errors.test [llvm-profdata] Add support for weighted merge of profile data (2nd try) 2015-12-15 17:37:09 +00:00
value-prof.proftext [profile] show more statistics 2016-05-23 16:36:11 +00:00
weight-instr.test Stop testing the unspecified order in which the OnDiskHashTable stores entries. 2016-03-26 02:02:59 +00:00
weight-sample.test [llvm-profdata] Add support for weighted merge of profile data (2nd try) 2015-12-15 17:37:09 +00:00