| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import os | 4 import os |
| 5 | 5 |
| 6 from core import path_util | 6 from core import path_util |
| 7 from core import perf_benchmark | 7 from core import perf_benchmark |
| 8 from page_sets import google_pages | 8 from page_sets import google_pages |
| 9 | 9 |
| 10 from benchmarks import v8_helper | 10 from benchmarks import v8_helper |
| 11 | 11 |
| 12 from measurements import v8_detached_context_age_in_gc | 12 from measurements import v8_detached_context_age_in_gc |
| 13 from measurements import v8_gc_times | 13 from measurements import v8_gc_times |
| 14 import page_sets | 14 import page_sets |
| 15 from telemetry import benchmark | 15 from telemetry import benchmark |
| 16 from telemetry import story | 16 from telemetry import story |
| 17 from telemetry.timeline import chrome_trace_category_filter | 17 from telemetry.timeline import chrome_trace_category_filter |
| 18 from telemetry.web_perf import timeline_based_measurement | 18 from telemetry.web_perf import timeline_based_measurement |
| 19 | 19 |
| 20 | 20 |
| 21 def CreateV8TimelineBasedMeasurementOptions(): | 21 def CreateV8TimelineBasedMeasurementOptions(): |
| 22 category_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter() | 22 category_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter() |
| 23 category_filter.AddIncludedCategory('v8') | 23 category_filter.AddIncludedCategory('v8') |
| 24 category_filter.AddIncludedCategory('renderer.scheduler') |
| 24 category_filter.AddIncludedCategory('blink.console') | 25 category_filter.AddIncludedCategory('blink.console') |
| 25 category_filter.AddDisabledByDefault('disabled-by-default-v8.compile') | 26 category_filter.AddDisabledByDefault('disabled-by-default-v8.compile') |
| 27 category_filter.AddDisabledByDefault('disabled-by-default-renderer.scheduler') |
| 26 options = timeline_based_measurement.Options(category_filter) | 28 options = timeline_based_measurement.Options(category_filter) |
| 27 options.SetTimelineBasedMetrics(['executionMetric']) | 29 options.SetTimelineBasedMetrics(['executionMetric']) |
| 28 return options | 30 return options |
| 29 | 31 |
| 30 | 32 |
| 31 @benchmark.Disabled('win') # crbug.com/416502 | 33 @benchmark.Disabled('win') # crbug.com/416502 |
| 32 class V8Top25(perf_benchmark.PerfBenchmark): | 34 class V8Top25(perf_benchmark.PerfBenchmark): |
| 33 """Measures V8 GC metrics on the while scrolling down the top 25 web pages. | 35 """Measures V8 GC metrics on the while scrolling down the top 25 web pages. |
| 34 | 36 |
| 35 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 37 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 return True | 226 return True |
| 225 # http://crbug.com/623576 | 227 # http://crbug.com/623576 |
| 226 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or | 228 if (possible_browser.platform.GetDeviceTypeName() == 'Nexus 5' or |
| 227 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): | 229 possible_browser.platform.GetDeviceTypeName() == 'Nexus 7'): |
| 228 return True | 230 return True |
| 229 return False | 231 return False |
| 230 | 232 |
| 231 @classmethod | 233 @classmethod |
| 232 def ShouldTearDownStateAfterEachStoryRun(cls): | 234 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 233 return True | 235 return True |
| OLD | NEW |