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'
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'
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits