Bug 1560374 - Set testharness and reftest web-platform-tests to Tier-1; r=jmaher...
[gecko.git] / build / merge_profdata.py
blobcf6a80ee8279c205c060b5a6522787cc9f5f0d33
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 import glob
6 import subprocess
7 import sys
8 import buildconfig
11 def main(_, profile_dir):
12 profraw_files = glob.glob(profile_dir + '/*.profraw')
13 if not profraw_files:
14 print('Could not find any profraw files in ' + profile_dir)
15 sys.exit(1)
17 subprocess.check_call([buildconfig.substs['LLVM_PROFDATA'], 'merge',
18 '-o', 'merged.profdata'] + profraw_files)