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

Side by Side Diff: tools/perf/benchmarks/system_health.py

Issue 2706483003: Add Multi-tab System Health Story (Closed)
Patch Set: Refactoring Benchmark TabSwitching Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import re 5 import re
6 6
7 from benchmarks import page_cycler_v2 7 from benchmarks import page_cycler_v2
8 8
9 from core import perf_benchmark 9 from core import perf_benchmark
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 def ValueCanBeAddedPredicate(cls, value, is_first_result): 112 def ValueCanBeAddedPredicate(cls, value, is_first_result):
113 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard 113 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard
114 # is able to cope with the data load generated by TBMv2 metrics. 114 # is able to cope with the data load generated by TBMv2 metrics.
115 return not _IGNORED_STATS_RE.search(value.name) 115 return not _IGNORED_STATS_RE.search(value.name)
116 116
117 117
118 class DesktopMemorySystemHealth(_MemorySystemHealthBenchmark): 118 class DesktopMemorySystemHealth(_MemorySystemHealthBenchmark):
119 """Desktop Chrome Memory System Health Benchmark.""" 119 """Desktop Chrome Memory System Health Benchmark."""
120 PLATFORM = 'desktop' 120 PLATFORM = 'desktop'
121 121
122 def SetExtraBrowserOptions(self, options):
123 options.AppendExtraBrowserArgs([
124 '--enable-stats-collection-bindings'
125 ])
126
122 @classmethod 127 @classmethod
123 def ShouldDisable(cls, possible_browser): 128 def ShouldDisable(cls, possible_browser):
124 return possible_browser.platform.GetDeviceTypeName() != 'Desktop' 129 return possible_browser.platform.GetDeviceTypeName() != 'Desktop'
125 130
126 131
127 @benchmark.Enabled('android') 132 @benchmark.Enabled('android')
128 class MobileMemorySystemHealth(_MemorySystemHealthBenchmark): 133 class MobileMemorySystemHealth(_MemorySystemHealthBenchmark):
129 """Mobile Chrome Memory System Health Benchmark.""" 134 """Mobile Chrome Memory System Health Benchmark."""
130 PLATFORM = 'mobile' 135 PLATFORM = 'mobile'
131 136
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 and load a blank page with multiprocess enabled. 184 and load a blank page with multiprocess enabled.
180 """ 185 """
181 186
182 def SetExtraBrowserOptions(self, options): 187 def SetExtraBrowserOptions(self, options):
183 options.AppendExtraBrowserArgs( 188 options.AppendExtraBrowserArgs(
184 ['--webview-sandboxed-renderer']) 189 ['--webview-sandboxed-renderer'])
185 190
186 @classmethod 191 @classmethod
187 def Name(cls): 192 def Name(cls):
188 return 'system_health.webview_startup_multiprocess' 193 return 'system_health.webview_startup_multiprocess'
OLDNEW
« no previous file with comments | « no previous file | tools/perf/benchmarks/tab_switching.py » ('j') | tools/perf/measurements/tab_switching.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698