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', | 58 @benchmark.Disabled('reference', 'android') # crbug.com/579546 |
59 'android', # crbug.com/579546 | |
60 'linux') # crbug.com/584634 | |
61 class V8InfiniteScroll(perf_benchmark.PerfBenchmark): | 59 class V8InfiniteScroll(perf_benchmark.PerfBenchmark): |
62 """Measures V8 GC metrics and memory usage while scrolling the top web pages. | 60 """Measures V8 GC metrics and memory usage while scrolling the top web pages. |
63 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 61 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
64 | 62 |
65 def SetExtraBrowserOptions(self, options): | 63 def SetExtraBrowserOptions(self, options): |
66 options.AppendExtraBrowserArgs([ | 64 options.AppendExtraBrowserArgs([ |
67 # TODO(perezju): Temporary workaround to disable periodic memory dumps. | 65 # TODO(perezju): Temporary workaround to disable periodic memory dumps. |
68 # See: http://crbug.com/513692 | 66 # See: http://crbug.com/513692 |
69 '--enable-memory-benchmarking', | 67 '--enable-memory-benchmarking', |
70 '--js-flags=--heap-growing-percent=10' | 68 '--js-flags=--heap-growing-percent=10' |
(...skipping 26 matching lines...) Expand all Loading... |
97 @classmethod | 95 @classmethod |
98 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 96 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
99 if value.tir_label in ['Begin', 'End']: | 97 if value.tir_label in ['Begin', 'End']: |
100 return value.name.startswith('memory_') and 'v8_renderer' in value.name | 98 return value.name.startswith('memory_') and 'v8_renderer' in value.name |
101 else: | 99 else: |
102 return value.tir_label == 'Scrolling' | 100 return value.tir_label == 'Scrolling' |
103 | 101 |
104 @classmethod | 102 @classmethod |
105 def ShouldTearDownStateAfterEachStoryRun(cls): | 103 def ShouldTearDownStateAfterEachStoryRun(cls): |
106 return True | 104 return True |
OLD | NEW |