| 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 shlex | 5 import shlex |
| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 """Measures V8 GC metrics on the while scrolling down key mobile sites. | 44 """Measures V8 GC metrics on the while scrolling down key mobile sites. |
| 45 | 45 |
| 46 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 46 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 47 test = v8_gc_times.V8GCTimes | 47 test = v8_gc_times.V8GCTimes |
| 48 page_set = page_sets.KeyMobileSitesSmoothPageSet | 48 page_set = page_sets.KeyMobileSitesSmoothPageSet |
| 49 | 49 |
| 50 @classmethod | 50 @classmethod |
| 51 def Name(cls): | 51 def Name(cls): |
| 52 return 'v8.key_mobile_sites_smooth' | 52 return 'v8.key_mobile_sites_smooth' |
| 53 | 53 |
| 54 @classmethod |
| 55 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 |
| 56 return (possible_browser.browser_type == 'reference' and |
| 57 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') |
| 58 |
| 54 | 59 |
| 55 class V8DetachedContextAgeInGC(perf_benchmark.PerfBenchmark): | 60 class V8DetachedContextAgeInGC(perf_benchmark.PerfBenchmark): |
| 56 """Measures the number of GCs needed to collect a detached context. | 61 """Measures the number of GCs needed to collect a detached context. |
| 57 | 62 |
| 58 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 63 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 59 test = v8_detached_context_age_in_gc.V8DetachedContextAgeInGC | 64 test = v8_detached_context_age_in_gc.V8DetachedContextAgeInGC |
| 60 page_set = page_sets.PageReloadCasesPageSet | 65 page_set = page_sets.PageReloadCasesPageSet |
| 61 | 66 |
| 62 @classmethod | 67 @classmethod |
| 63 def Name(cls): | 68 def Name(cls): |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 """Measures V8 GC metrics and memory usage while scrolling the top mobile | 200 """Measures V8 GC metrics and memory usage while scrolling the top mobile |
| 196 web pages. | 201 web pages. |
| 197 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 202 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 198 | 203 |
| 199 page_set = page_sets.MobileInfiniteScrollPageSet | 204 page_set = page_sets.MobileInfiniteScrollPageSet |
| 200 | 205 |
| 201 @classmethod | 206 @classmethod |
| 202 def Name(cls): | 207 def Name(cls): |
| 203 return 'v8.mobile_infinite_scroll' | 208 return 'v8.mobile_infinite_scroll' |
| 204 | 209 |
| 210 @classmethod |
| 211 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 |
| 212 return (possible_browser.browser_type == 'reference' and |
| 213 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') |
| 214 |
| 205 | 215 |
| 206 class V8Adword(perf_benchmark.PerfBenchmark): | 216 class V8Adword(perf_benchmark.PerfBenchmark): |
| 207 """Measures V8 Execution metrics on the Adword page.""" | 217 """Measures V8 Execution metrics on the Adword page.""" |
| 208 | 218 |
| 209 def CreateTimelineBasedMeasurementOptions(self): | 219 def CreateTimelineBasedMeasurementOptions(self): |
| 210 | 220 |
| 211 category_filter = tracing_category_filter.CreateMinimalOverheadFilter() | 221 category_filter = tracing_category_filter.CreateMinimalOverheadFilter() |
| 212 category_filter.AddIncludedCategory('v8') | 222 category_filter.AddIncludedCategory('v8') |
| 213 category_filter.AddIncludedCategory('blink.console') | 223 category_filter.AddIncludedCategory('blink.console') |
| 214 options = timeline_based_measurement.Options(category_filter) | 224 options = timeline_based_measurement.Options(category_filter) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 231 def Name(cls): | 241 def Name(cls): |
| 232 return 'v8.google' | 242 return 'v8.google' |
| 233 | 243 |
| 234 @classmethod | 244 @classmethod |
| 235 def ShouldDisable(cls, possible_browser): | 245 def ShouldDisable(cls, possible_browser): |
| 236 return cls.IsSvelte(possible_browser) # http://crbug.com/596556 | 246 return cls.IsSvelte(possible_browser) # http://crbug.com/596556 |
| 237 | 247 |
| 238 @classmethod | 248 @classmethod |
| 239 def ShouldTearDownStateAfterEachStoryRun(cls): | 249 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 240 return True | 250 return True |
| OLD | NEW |