build/merge_profdata.py
author Chris Manchester <cmanchester@mozilla.com>
Fri, 21 Dec 2018 19:02:11 +0000
changeset 452475 3b1c7ad601ba81805e5de271f91c6892e42c2091
child 475325 99dfff71a4ca4e7cec211404f9efde80b3b7a693
permissions -rw-r--r--
Bug 1507344 - Add configure machinery for MOZ_PROFILE_USE and merging profile. r=nalexander Differential Revision: https://phabricator.services.mozilla.com/D13863

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import subprocess
import buildconfig


def main(_, profile_file):
    subprocess.check_call([buildconfig.substs['LLVM_PROFDATA'], 'merge',
                           '-o', 'merged.profdata', profile_file])