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 | 4 |
5 from core import perf_benchmark | 5 from core import perf_benchmark |
6 | 6 |
7 from measurements import v8_detached_context_age_in_gc | 7 from measurements import v8_detached_context_age_in_gc |
8 from measurements import v8_gc_times | 8 from measurements import v8_gc_times |
9 import page_sets | 9 import page_sets |
10 from telemetry import benchmark | 10 from telemetry import benchmark |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 test = v8_detached_context_age_in_gc.V8DetachedContextAgeInGC | 48 test = v8_detached_context_age_in_gc.V8DetachedContextAgeInGC |
49 page_set = page_sets.PageReloadCasesPageSet | 49 page_set = page_sets.PageReloadCasesPageSet |
50 | 50 |
51 @classmethod | 51 @classmethod |
52 def Name(cls): | 52 def Name(cls): |
53 return 'v8.detached_context_age_in_gc' | 53 return 'v8.detached_context_age_in_gc' |
54 | 54 |
55 | 55 |
56 # Disabled on reference builds because they don't support the new | 56 # Disabled on reference builds because they don't support the new |
57 # Tracing.requestMemoryDump DevTools API. See http://crbug.com/540022. | 57 # Tracing.requestMemoryDump DevTools API. See http://crbug.com/540022. |
58 @benchmark.Disabled('reference', 'android') # crbug.com/579546 | 58 @benchmark.Disabled('reference', |
| 59 'android', # crbug.com/579546 |
| 60 'linux') # crbug.com/584634 |
59 class V8InfiniteScroll(perf_benchmark.PerfBenchmark): | 61 class V8InfiniteScroll(perf_benchmark.PerfBenchmark): |
60 """Measures V8 GC metrics and memory usage while scrolling the top web pages. | 62 """Measures V8 GC metrics and memory usage while scrolling the top web pages. |
61 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 63 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
62 | 64 |
63 def SetExtraBrowserOptions(self, options): | 65 def SetExtraBrowserOptions(self, options): |
64 options.AppendExtraBrowserArgs([ | 66 options.AppendExtraBrowserArgs([ |
65 # TODO(perezju): Temporary workaround to disable periodic memory dumps. | 67 # TODO(perezju): Temporary workaround to disable periodic memory dumps. |
66 # See: http://crbug.com/513692 | 68 # See: http://crbug.com/513692 |
67 '--enable-memory-benchmarking', | 69 '--enable-memory-benchmarking', |
68 '--js-flags=--heap-growing-percent=10' | 70 '--js-flags=--heap-growing-percent=10' |
(...skipping 26 matching lines...) Expand all Loading... |
95 @classmethod | 97 @classmethod |
96 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 98 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
97 if value.tir_label in ['Begin', 'End']: | 99 if value.tir_label in ['Begin', 'End']: |
98 return value.name.startswith('memory_') and 'v8_renderer' in value.name | 100 return value.name.startswith('memory_') and 'v8_renderer' in value.name |
99 else: | 101 else: |
100 return value.tir_label == 'Scrolling' | 102 return value.tir_label == 'Scrolling' |
101 | 103 |
102 @classmethod | 104 @classmethod |
103 def ShouldTearDownStateAfterEachStoryRun(cls): | 105 def ShouldTearDownStateAfterEachStoryRun(cls): |
104 return True | 106 return True |
OLD | NEW |