build/merge_profdata.py
author Michael Ratcliffe <mratcliffe@mozilla.com>
Wed, 29 May 2019 12:40:53 +0000
changeset 476116 b860b13c8eae8d8eeb363c21f2aa3c1430e0301b
parent 475307 99dfff71a4ca4e7cec211404f9efde80b3b7a693
permissions -rw-r--r--
Bug 1553467 - [Inactive CSS] Increase the tooltip's visual padding to match the attached mockup. r=pbro Differential Revision: https://phabricator.services.mozilla.com/D32140

# 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 glob
import subprocess
import sys
import buildconfig


def main(_, profile_dir):
    profraw_files = glob.glob(profile_dir + '/*.profraw')
    if not profraw_files:
        print('Could not find any profraw files in ' + profile_dir)
        sys.exit(1)

    subprocess.check_call([buildconfig.substs['LLVM_PROFDATA'], 'merge',
                           '-o', 'merged.profdata'] + profraw_files)