| 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 import re | 5 import re |
| 6 | 6 |
| 7 from core import path_util | 7 from core import path_util |
| 8 from core import perf_benchmark | 8 from core import perf_benchmark |
| 9 from page_sets import google_pages | 9 from page_sets import google_pages |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 def CreateV8TimelineBasedMeasurementOptions(): | 23 def CreateV8TimelineBasedMeasurementOptions(): |
| 24 category_filter = tracing_category_filter.CreateMinimalOverheadFilter() | 24 category_filter = tracing_category_filter.CreateMinimalOverheadFilter() |
| 25 category_filter.AddIncludedCategory('v8') | 25 category_filter.AddIncludedCategory('v8') |
| 26 category_filter.AddIncludedCategory('blink.console') | 26 category_filter.AddIncludedCategory('blink.console') |
| 27 options = timeline_based_measurement.Options(category_filter) | 27 options = timeline_based_measurement.Options(category_filter) |
| 28 options.SetTimelineBasedMetric('executionMetric') | 28 options.SetTimelineBasedMetric('executionMetric') |
| 29 return options | 29 return options |
| 30 | 30 |
| 31 | 31 |
| 32 @benchmark.Disabled('win') # crbug.com/416502 | 32 @benchmark.Disabled('win', # crbug.com/416502 |
| 33 'mac') # crbug.com/623570 |
| 33 class V8Top25(perf_benchmark.PerfBenchmark): | 34 class V8Top25(perf_benchmark.PerfBenchmark): |
| 34 """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. |
| 35 | 36 |
| 36 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 37 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 37 test = v8_gc_times.V8GCTimes | 38 test = v8_gc_times.V8GCTimes |
| 38 page_set = page_sets.V8Top25SmoothPageSet | 39 page_set = page_sets.V8Top25SmoothPageSet |
| 39 | 40 |
| 40 @classmethod | 41 @classmethod |
| 41 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 | 42 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 |
| 42 return (possible_browser.browser_type == 'reference' and | 43 return (possible_browser.browser_type == 'reference' and |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 def Name(cls): | 297 def Name(cls): |
| 297 return 'v8.google' | 298 return 'v8.google' |
| 298 | 299 |
| 299 @classmethod | 300 @classmethod |
| 300 def ShouldDisable(cls, possible_browser): | 301 def ShouldDisable(cls, possible_browser): |
| 301 return cls.IsSvelte(possible_browser) # http://crbug.com/596556 | 302 return cls.IsSvelte(possible_browser) # http://crbug.com/596556 |
| 302 | 303 |
| 303 @classmethod | 304 @classmethod |
| 304 def ShouldTearDownStateAfterEachStoryRun(cls): | 305 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 305 return True | 306 return True |
| OLD | NEW |