build/merge_profdata.py
author Boris Zbarsky <bzbarsky@mit.edu>
Sat, 02 Feb 2019 03:25:07 +0000
changeset 456513 f39008382451ae45616ff3263421c2affc716cbc
parent 452462 3b1c7ad601ba81805e5de271f91c6892e42c2091
child 475307 99dfff71a4ca4e7cec211404f9efde80b3b7a693
permissions -rw-r--r--
Bug 1521907 part 6. Start using CheckedUnwrapStatic/Dynamic in toolkit. r=peterv Differential Revision: https://phabricator.services.mozilla.com/D17886

# 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])