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/.
11 def main(_
, profile_dir
):
12 profraw_files
= glob
.glob(profile_dir
+ '/*.profraw')
14 print('Could not find any profraw files in ' + profile_dir
)
17 subprocess
.check_call([buildconfig
.substs
['LLVM_PROFDATA'], 'merge',
18 '-o', 'merged.profdata'] + profraw_files
)