[PATCH] D71585: [perf-training] Change profile file pattern string to use %4m instead of %p

Xin-Xin Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 16 17:31:02 PST 2019


xinxinw1 created this revision.
xinxinw1 added reviewers: beanz, phosek, xiaobai, smeenai.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

With %p, each test file that we're using to generate profile data will make its own profraw file which is around 60 MB in size. If we have a lot of test files, that quickly uses a lot of space. Use %4m instead to share the profraw files used to store the profile data. We use 4 here based on the default value in https://reviews.llvm.org/source/llvm-github/browse/master/llvm/CMakeLists.txt$604


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71585

Files:
  clang/utils/perf-training/lit.cfg


Index: clang/utils/perf-training/lit.cfg
===================================================================
--- clang/utils/perf-training/lit.cfg
+++ clang/utils/perf-training/lit.cfg
@@ -37,5 +37,5 @@
 config.substitutions.append( ('%clang', ' %s %s ' % (config.clang, sysroot_flags) ) )
 config.substitutions.append( ('%test_root', config.test_exec_root ) )
 
-config.environment['LLVM_PROFILE_FILE'] = 'perf-training-%p.profraw'
+config.environment['LLVM_PROFILE_FILE'] = 'perf-training-%4m.profraw'
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71585.234200.patch
Type: text/x-patch
Size: 506 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191217/511a9756/attachment-0001.bin>


More information about the cfe-commits mailing list