Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/port/base.py

Issue 1154343007: Add extra content_shell per worker for virtual tests, except on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 """Return the default batch size to use for this port.""" 262 """Return the default batch size to use for this port."""
263 if self.get_option('enable_sanitizer'): 263 if self.get_option('enable_sanitizer'):
264 # ASAN/MSAN/TSAN use more memory than regular content_shell. Their 264 # ASAN/MSAN/TSAN use more memory than regular content_shell. Their
265 # memory usage may also grow over time, up to a certain point. 265 # memory usage may also grow over time, up to a certain point.
266 # Relaunching the driver periodically helps keep it under control. 266 # Relaunching the driver periodically helps keep it under control.
267 return 40 267 return 40
268 # The default is infinte batch size. 268 # The default is infinte batch size.
269 return None 269 return None
270 270
271 def default_child_processes(self): 271 def default_child_processes(self):
272 """Return the number of drivers to use for this port.""" 272 """Return the number of child processes to use for this port."""
273 return self._executive.cpu_count() 273 return self._executive.cpu_count()
274 274
275 def max_drivers_per_process(self):
276 """The maximum number of drivers a child process can use for this port." ""
277 return 2
278
275 def default_max_locked_shards(self): 279 def default_max_locked_shards(self):
276 """Return the number of "locked" shards to run in parallel (like the htt p tests).""" 280 """Return the number of "locked" shards to run in parallel (like the htt p tests)."""
277 max_locked_shards = int(self.default_child_processes()) / 4 281 max_locked_shards = int(self.default_child_processes()) / 4
278 if not max_locked_shards: 282 if not max_locked_shards:
279 return 1 283 return 1
280 return max_locked_shards 284 return max_locked_shards
281 285
282 def baseline_path(self): 286 def baseline_path(self):
283 """Return the absolute path to the directory to store new baselines in f or this port.""" 287 """Return the absolute path to the directory to store new baselines in f or this port."""
284 # FIXME: remove once all callers are calling either baseline_version_dir () or baseline_platform_dir() 288 # FIXME: remove once all callers are calling either baseline_version_dir () or baseline_platform_dir()
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after
1763 class PhysicalTestSuite(object): 1767 class PhysicalTestSuite(object):
1764 def __init__(self, base, args, reference_args=None): 1768 def __init__(self, base, args, reference_args=None):
1765 self.name = base 1769 self.name = base
1766 self.base = base 1770 self.base = base
1767 self.args = args 1771 self.args = args
1768 self.reference_args = args if reference_args is None else reference_args 1772 self.reference_args = args if reference_args is None else reference_args
1769 self.tests = set() 1773 self.tests = set()
1770 1774
1771 def __repr__(self): 1775 def __repr__(self):
1772 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args) 1776 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base, self.args, self.reference_args)
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/android.py ('k') | Tools/Scripts/webkitpy/layout_tests/port/driver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698