mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
Bug 1437215 - Measure WebRender memory usage on Linux x86_64 using AWSY tests, r=jmaher
This commit is contained in:
parent
b78b7a1595
commit
120bb04de2
@ -118,6 +118,7 @@ linux64-qr/opt:
|
||||
test-sets:
|
||||
- linux-qr-tests
|
||||
- linux-qr-talos
|
||||
- awsy
|
||||
linux64-qr/debug:
|
||||
build-platform: linux64/debug
|
||||
test-sets:
|
||||
|
@ -82,6 +82,10 @@ class MachCommands(MachCommandBase):
|
||||
if 'disable_stylo' in kwargs and kwargs['disable_stylo']:
|
||||
os.environ['STYLO_FORCE_DISABLED'] = '1'
|
||||
|
||||
if 'enable_webrender' in kwargs and kwargs['enable_webrender']:
|
||||
os.environ['MOZ_WEBRENDER'] = '1'
|
||||
os.environ['MOZ_ACCELERATED'] = '1'
|
||||
|
||||
runtime_testvars = {}
|
||||
for arg in ('webRootDir', 'pageManifest', 'resultsDir', 'entities', 'iterations',
|
||||
'perTabPause', 'settleWaitTime', 'maxTabs', 'dmd'):
|
||||
@ -220,6 +224,9 @@ class MachCommands(MachCommandBase):
|
||||
@CommandArgument('--single-stylo-traversal', group='AWSY', action='store_true',
|
||||
dest='single_stylo_traversal', default=False,
|
||||
help='Set STYLO_THREADS=1.')
|
||||
@CommandArgument('--enable-webrender', group='AWSY', action='store_true',
|
||||
dest='enable_webrender', default=False,
|
||||
help='Enable WebRender.')
|
||||
@CommandArgument('--dmd', group='AWSY', action='store_true',
|
||||
dest='dmd', default=False,
|
||||
help='Enable DMD during testing. Requires a DMD-enabled build.')
|
||||
|
@ -43,6 +43,12 @@ class AWSY(TestingMixin, MercurialScript, BlobUploadMixin, TooltoolMixin, CodeCo
|
||||
"dest": "single_stylo_traversal",
|
||||
"default": False,
|
||||
"help": "Set STYLO_THREADS=1.",
|
||||
}],
|
||||
[["--enable-webrender"],
|
||||
{"action": "store_true",
|
||||
"dest": "enable_webrender",
|
||||
"default": False,
|
||||
"help": "Tries to enable the WebRender compositor.",
|
||||
}]
|
||||
] + testing_config_options + copy.deepcopy(blobupload_config_options) \
|
||||
+ copy.deepcopy(code_coverage_config_options)
|
||||
@ -171,6 +177,10 @@ class AWSY(TestingMixin, MercurialScript, BlobUploadMixin, TooltoolMixin, CodeCo
|
||||
# TODO: consider getting rid of this as stylo is enabled by default
|
||||
env['STYLO_FORCE_ENABLED'] = '1'
|
||||
|
||||
if self.config['enable_webrender']:
|
||||
env['MOZ_WEBRENDER'] = '1'
|
||||
env['MOZ_ACCELERATED'] = '1'
|
||||
|
||||
env['MOZ_UPLOAD_DIR'] = dirs['abs_blob_upload_dir']
|
||||
if not os.path.isdir(env['MOZ_UPLOAD_DIR']):
|
||||
self.mkdir_p(env['MOZ_UPLOAD_DIR'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user