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

Unified Diff: Tools/Scripts/webkitpy/layout_tests/port/base.py

Issue 709603005: Limit the layout_test batch size for *SAN builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/Scripts/webkitpy/layout_tests/port/base.py
diff --git a/Tools/Scripts/webkitpy/layout_tests/port/base.py b/Tools/Scripts/webkitpy/layout_tests/port/base.py
index ea4b366894efeba6e802717d820e2397a67b879d..6131e57a68b63d8296b65e0d9191b89795aa7fba 100644
--- a/Tools/Scripts/webkitpy/layout_tests/port/base.py
+++ b/Tools/Scripts/webkitpy/layout_tests/port/base.py
@@ -258,6 +258,16 @@ class Port(object):
self._pretty_patch_available = self.check_pretty_patch(logging=False)
return self._pretty_patch_available
+ def default_batch_size(self):
+ """Return the default batch size to use for this port."""
+ if self.get_option('enable_sanitizer'):
+ # ASAN/MSAN/TSAN use more memory than regular content_shell. Their
+ # memory usage may also grow over time, up to a certain point.
+ # Relaunching the driver periodically helps keep it under control.
+ return 50
+ # The default is infinte batch size.
+ return None
+
def default_child_processes(self):
"""Return the number of drivers to use for this port."""
if self.get_option('enable_sanitizer'):
« no previous file with comments | « no previous file | Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698