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

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

Issue 2409103002: Enable loading.mobile benchmark on Android except reference and webview (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 from core import perf_benchmark 5 from core import perf_benchmark
6 import page_sets 6 import page_sets
7 7
8 from benchmarks import page_cycler_v2 8 from benchmarks import page_cycler_v2
9 from telemetry import benchmark 9 from telemetry import benchmark
10 from telemetry.page import cache_temperature 10 from telemetry.page import cache_temperature
11 11
12 12
13 @benchmark.Disabled('all') # crbug.com/654215 13 @benchmark.Enabled('android')
14 class LoadingMobile(perf_benchmark.PerfBenchmark): 14 class LoadingMobile(perf_benchmark.PerfBenchmark):
15 """ A benchmark measuring loading performance of mobile sites. """ 15 """ A benchmark measuring loading performance of mobile sites. """
16 16
17 options = {'pageset_repeat': 2} 17 options = {'pageset_repeat': 2}
18 18
19 def CreateTimelineBasedMeasurementOptions(self): 19 def CreateTimelineBasedMeasurementOptions(self):
20 return page_cycler_v2.TimelineBasedMeasurementOptionsForLoadingMetric() 20 return page_cycler_v2.TimelineBasedMeasurementOptionsForLoadingMetric()
21 21
22 @classmethod 22 @classmethod
23 def ShouldDisable(cls, possible_browser):
24 # crbug.com/619254
25 if possible_browser.browser_type == 'reference':
26 return True
27
28 # crbug.com/651188
29 if possible_browser.browser_type == 'android-webview':
30 return True
31
32 return False
33
34 @classmethod
23 def Name(cls): 35 def Name(cls):
24 return 'loading.mobile' 36 return 'loading.mobile'
25 37
26 def CreateStorySet(self, options): 38 def CreateStorySet(self, options):
27 return page_sets.LoadingMobileStorySet(cache_temperatures=[ 39 return page_sets.LoadingMobileStorySet(cache_temperatures=[
28 cache_temperature.ANY]) 40 cache_temperature.ANY])
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698