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

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

Issue 2104873002: CL for perf tryjob on android (WITHOUT logging) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | tools/run-perf-test.cfg » ('j') | 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 import re 5 import re
6 6
7 from core import perf_benchmark 7 from core import perf_benchmark
8 from telemetry import benchmark 8 from telemetry import benchmark
9 from telemetry.timeline import tracing_category_filter 9 from telemetry.timeline import tracing_category_filter
10 from telemetry.web_perf import timeline_based_measurement 10 from telemetry.web_perf import timeline_based_measurement
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 """Mobile Chrome Memory System Health Benchmark.""" 102 """Mobile Chrome Memory System Health Benchmark."""
103 page_set = page_sets.MobileMemorySystemHealthStorySet 103 page_set = page_sets.MobileMemorySystemHealthStorySet
104 104
105 @classmethod 105 @classmethod
106 def ShouldDisable(cls, possible_browser): 106 def ShouldDisable(cls, possible_browser):
107 # http://crbug.com/612144 (reference on Nexus 5X). 107 # http://crbug.com/612144 (reference on Nexus 5X).
108 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' or ( 108 return possible_browser.platform.GetDeviceTypeName() == 'Desktop' or (
109 possible_browser.browser_type == 'reference' and 109 possible_browser.browser_type == 'reference' and
110 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') 110 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X')
111 111
112
112 @benchmark.Enabled('android-webview') 113 @benchmark.Enabled('android-webview')
113 class WebviewStartupSystemHealthBenchmark(perf_benchmark.PerfBenchmark): 114 class WebviewStartupSystemHealthBenchmark(perf_benchmark.PerfBenchmark):
114 """Webview startup time benchmark 115 """Webview startup time benchmark
115 116
116 Benchmark that measures how long WebView takes to start up 117 Benchmark that measures how long WebView takes to start up
117 and load a blank page. Since thie metric only requires the trace 118 and load a blank page. Since thie metric only requires the trace
118 markers recorded in atrace, Chrome tracing is not enabled for this 119 markers recorded in atrace, Chrome tracing is not enabled for this
119 benchmark. 120 benchmark.
120 """ 121 """
121 page_set = page_sets.BlankPageSet 122 page_set = page_sets.BlankPageSet
122 123
123 def CreateTimelineBasedMeasurementOptions(self): 124 def CreateTimelineBasedMeasurementOptions(self):
124 options = timeline_based_measurement.Options() 125 options = timeline_based_measurement.Options()
125 options.SetTimelineBasedMetric('webviewStartupMetric') 126 options.SetTimelineBasedMetric('webviewStartupMetric')
126 options.config.enable_atrace_trace = True 127 options.config.enable_atrace_trace = True
127 options.config.enable_chrome_trace = False 128 options.config.enable_chrome_trace = False
128 options.config.atrace_config.app_name = 'org.chromium.webview_shell' 129 options.config.atrace_config.app_name = 'org.chromium.webview_shell'
129 return options 130 return options
130 131
131 @classmethod 132 @classmethod
132 def ShouldTearDownStateAfterEachStoryRun(cls): 133 def ShouldTearDownStateAfterEachStoryRun(cls):
133 return True 134 return True
134 135
135 @classmethod 136 @classmethod
136 def Name(cls): 137 def Name(cls):
137 return 'system_health.webview_startup' 138 return 'system_health.webview_startup'
OLDNEW
« no previous file with comments | « no previous file | tools/run-perf-test.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698