| 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 shlex | 4 import shlex |
| 5 | 5 |
| 6 from core import perf_benchmark | 6 from core import perf_benchmark |
| 7 | 7 |
| 8 from measurements import v8_detached_context_age_in_gc | 8 from measurements import v8_detached_context_age_in_gc |
| 9 from measurements import v8_gc_times | 9 from measurements import v8_gc_times |
| 10 import page_sets | 10 import page_sets |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 page_set = page_sets.PageReloadCasesPageSet | 51 page_set = page_sets.PageReloadCasesPageSet |
| 52 | 52 |
| 53 @classmethod | 53 @classmethod |
| 54 def Name(cls): | 54 def Name(cls): |
| 55 return 'v8.detached_context_age_in_gc' | 55 return 'v8.detached_context_age_in_gc' |
| 56 | 56 |
| 57 | 57 |
| 58 # Disabled on reference builds because they don't support the new | 58 # Disabled on reference builds because they don't support the new |
| 59 # Tracing.requestMemoryDump DevTools API. See http://crbug.com/540022. | 59 # Tracing.requestMemoryDump DevTools API. See http://crbug.com/540022. |
| 60 @benchmark.Disabled('reference', 'android') # crbug.com/579546 | 60 @benchmark.Disabled('reference', 'android') # crbug.com/579546 |
| 61 @benchmark.Disabled('win') # https://crbug.com/590747 |
| 61 class V8InfiniteScroll(perf_benchmark.PerfBenchmark): | 62 class V8InfiniteScroll(perf_benchmark.PerfBenchmark): |
| 62 """Measures V8 GC metrics and memory usage while scrolling the top web pages. | 63 """Measures V8 GC metrics and memory usage while scrolling the top web pages. |
| 63 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 64 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 64 | 65 |
| 65 page_set = page_sets.InfiniteScrollPageSet | 66 page_set = page_sets.InfiniteScrollPageSet |
| 66 | 67 |
| 67 def SetExtraBrowserOptions(self, options): | 68 def SetExtraBrowserOptions(self, options): |
| 68 existing_js_flags = [] | 69 existing_js_flags = [] |
| 69 for extra_arg in options.extra_browser_args: | 70 for extra_arg in options.extra_browser_args: |
| 70 if extra_arg.startswith('--js-flags='): | 71 if extra_arg.startswith('--js-flags='): |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 return (value.name.startswith('memory_') and | 111 return (value.name.startswith('memory_') and |
| 111 'v8_renderer' in value.name) or \ | 112 'v8_renderer' in value.name) or \ |
| 112 (value.name.startswith('v8_') and not | 113 (value.name.startswith('v8_') and not |
| 113 value.name.startswith('v8_gc')) | 114 value.name.startswith('v8_gc')) |
| 114 else: | 115 else: |
| 115 return value.tir_label == 'Scrolling' | 116 return value.tir_label == 'Scrolling' |
| 116 | 117 |
| 117 @classmethod | 118 @classmethod |
| 118 def ShouldTearDownStateAfterEachStoryRun(cls): | 119 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 119 return True | 120 return True |
| OLD | NEW |