Changeset 277105 in webkit
- Timestamp:
- May 6, 2021 11:58:21 AM (3 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r277103 r277105 1 2021-05-06 Filip Pizlo <fpizlo@apple.com> 2 3 Make it easy to pass __XPC variables to run-benchmark 4 https://bugs.webkit.org/show_bug.cgi?id=225473 5 6 Reviewed by Stephanie Lewis. 7 8 * Scripts/webkitpy/benchmark_runner/browser_driver/osx_safari_driver.py: 9 (OSXSafariDriver.launch_url): 10 * Scripts/webkitpy/benchmark_runner/run_benchmark.py: 11 (config_argument_parser): 12 1 13 2021-05-06 Aakash Jain <aakash_jain@apple.com> 2 14 -
trunk/Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_safari_driver.py
r265866 r277105 3 3 import logging 4 4 import os 5 import re 5 6 import subprocess 6 7 import time … … 27 28 args = ['/Applications/Safari.app/Contents/MacOS/Safari'] 28 29 env = {} 30 for key, value in os.environ.items(): 31 if re.match(r"^__XPC_", key): 32 env[key] = value 29 33 if browser_build_path: 30 34 browser_build_absolute_path = os.path.abspath(browser_build_path) … … 38 42 39 43 if contains_frameworks: 40 env = {'DYLD_FRAMEWORK_PATH': browser_build_absolute_path, 'DYLD_LIBRARY_PATH': browser_build_absolute_path, 41 '__XPC_DYLD_FRAMEWORK_PATH': browser_build_absolute_path, '__XPC_DYLD_LIBRARY_PATH': browser_build_absolute_path} 44 env['DYLD_FRAMEWORK_PATH'] = browser_build_absolute_path 45 env['DYLD_LIBRARY_PATH'] = browser_build_absolute_path 46 env['__XPC_DYLD_FRAMEWORK_PATH'] = browser_build_absolute_path 47 env['__XPC_DYLD_LIBRARY_PATH'] = browser_build_absolute_path 42 48 elif not has_safari_app: 43 49 raise Exception('Could not find any framework "{}"'.format(browser_build_path)) -
trunk/Tools/Scripts/webkitpy/benchmark_runner/run_benchmark.py
r275152 r277105 33 33 34 34 def config_argument_parser(): 35 parser = argparse.ArgumentParser(description='Run browser based performance benchmarks. To run a single benchmark in the recommended way, use run-benchmark --plan. To see the vailable benchmarks, use run-benchmark --list-plans. ')35 parser = argparse.ArgumentParser(description='Run browser based performance benchmarks. To run a single benchmark in the recommended way, use run-benchmark --plan. To see the vailable benchmarks, use run-benchmark --list-plans. This script passes through the __XPC variables in its environment to the Safari process.') 36 36 mutual_group = parser.add_mutually_exclusive_group(required=True) 37 37 mutual_group.add_argument('--plan', help='Run a specific benchmark plan (e.g. speedometer, jetstream).')
Note: See TracChangeset
for help on using the changeset viewer.