OLD | NEW |
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 chrome_trace_category_filter | 9 from telemetry.timeline import chrome_trace_category_filter |
10 from telemetry.web_perf import timeline_based_measurement | 10 from telemetry.web_perf import timeline_based_measurement |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 def CreateTimelineBasedMeasurementOptions(self): | 73 def CreateTimelineBasedMeasurementOptions(self): |
74 options = timeline_based_measurement.Options( | 74 options = timeline_based_measurement.Options( |
75 chrome_trace_category_filter.ChromeTraceCategoryFilter( | 75 chrome_trace_category_filter.ChromeTraceCategoryFilter( |
76 '-*,disabled-by-default-memory-infra')) | 76 '-*,disabled-by-default-memory-infra')) |
77 options.config.enable_android_graphics_memtrack = True | 77 options.config.enable_android_graphics_memtrack = True |
78 options.SetTimelineBasedMetrics(['memoryMetric']) | 78 options.SetTimelineBasedMetrics(['memoryMetric']) |
79 return options | 79 return options |
80 | 80 |
81 def CreateStorySet(self, options): | 81 def CreateStorySet(self, options): |
82 return page_sets.SystemHealthStorySet(platform=self.PLATFORM, case='load', | 82 return page_sets.SystemHealthStorySet(platform=self.PLATFORM, |
83 take_memory_measurement=True) | 83 take_memory_measurement=True) |
84 | 84 |
85 @classmethod | 85 @classmethod |
86 def Name(cls): | 86 def Name(cls): |
87 return 'system_health.memory_%s' % cls.PLATFORM | 87 return 'system_health.memory_%s' % cls.PLATFORM |
88 | 88 |
89 @classmethod | 89 @classmethod |
90 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 90 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
91 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard | 91 # TODO(crbug.com/610962): Remove this stopgap when the perf dashboard |
92 # is able to cope with the data load generated by TBMv2 metrics. | 92 # is able to cope with the data load generated by TBMv2 metrics. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 options.config.atrace_config.app_name = 'org.chromium.webview_shell' | 135 options.config.atrace_config.app_name = 'org.chromium.webview_shell' |
136 return options | 136 return options |
137 | 137 |
138 @classmethod | 138 @classmethod |
139 def ShouldTearDownStateAfterEachStoryRun(cls): | 139 def ShouldTearDownStateAfterEachStoryRun(cls): |
140 return True | 140 return True |
141 | 141 |
142 @classmethod | 142 @classmethod |
143 def Name(cls): | 143 def Name(cls): |
144 return 'system_health.webview_startup' | 144 return 'system_health.webview_startup' |
OLD | NEW |