| 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 import os | 5 import os |
| 6 | 6 |
| 7 import page_sets | 7 import page_sets |
| 8 from benchmarks import blink_perf | 8 from benchmarks import blink_perf |
| 9 from benchmarks import silk_flags | 9 from benchmarks import silk_flags |
| 10 from measurements import oilpan_gc_times | 10 from measurements import oilpan_gc_times |
| 11 from measurements import smoothness | |
| 12 from telemetry import benchmark | 11 from telemetry import benchmark |
| 13 from telemetry.core import util | 12 from telemetry.core import util |
| 14 from telemetry import page | 13 from telemetry import page |
| 15 | 14 |
| 16 | 15 |
| 17 class OilpanGCTimesBlinkPerfAnimation(benchmark.Benchmark): | 16 class OilpanGCTimesBlinkPerfAnimation(benchmark.Benchmark): |
| 18 tag = 'blink_perf_animation' | 17 tag = 'blink_perf_animation' |
| 19 test = oilpan_gc_times.OilpanGCTimesForBlinkPerf | 18 test = oilpan_gc_times.OilpanGCTimesForBlinkPerf |
| 20 | 19 |
| 21 def CreatePageSet(self, options): | 20 def CreatePageSet(self, options): |
| 22 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'Animation') | 21 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'Animation') |
| 23 return blink_perf.CreatePageSetFromPath(path, blink_perf.SKIPPED_FILE) | 22 return blink_perf.CreatePageSetFromPath(path, blink_perf.SKIPPED_FILE) |
| 24 | 23 |
| 25 | 24 |
| 26 @benchmark.Enabled('content-shell') | 25 @benchmark.Enabled('content-shell') |
| 27 class OilpanGCTimesBlinkPerfStress(benchmark.Benchmark): | 26 class OilpanGCTimesBlinkPerfStress(benchmark.Benchmark): |
| 28 tag = 'blink_perf_stress' | 27 tag = 'blink_perf_stress' |
| 29 test = oilpan_gc_times.OilpanGCTimesForInternals | 28 test = oilpan_gc_times.OilpanGCTimesForInternals |
| 30 | 29 |
| 31 def CreatePageSet(self, options): | 30 def CreatePageSet(self, options): |
| 32 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'BlinkGC') | 31 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'BlinkGC') |
| 33 return blink_perf.CreatePageSetFromPath(path, blink_perf.SKIPPED_FILE) | 32 return blink_perf.CreatePageSetFromPath(path, blink_perf.SKIPPED_FILE) |
| 34 | 33 |
| 35 | 34 |
| 36 class OilpanGCTimesSmoothnessAnimation(benchmark.Benchmark): | 35 class OilpanGCTimesSmoothnessAnimation(benchmark.Benchmark): |
| 37 test = oilpan_gc_times.OilpanGCTimesForSmoothness | 36 test = oilpan_gc_times.OilpanGCTimesForSmoothness |
| 38 page_set = page_sets.ToughAnimationCasesPageSet | 37 page_set = page_sets.ToughAnimationCasesPageSet |
| 39 | 38 |
| 40 | 39 |
| 41 # TODO(peria): Add more page sets. 'key_silk_cases' and | 40 @benchmark.Enabled('android') |
| 42 # 'smoothness.sync_scroll.key_mobile_sites' are wanted for now. | 41 class OilpanGCTimesKeySilkCases(benchmark.Benchmark): |
| 42 test = oilpan_gc_times.OilpanGCTimesForSmoothness |
| 43 page_set = page_sets.KeySilkCasesPageSet |
| 44 |
| 45 |
| 46 @benchmark.Enabled('android') |
| 47 class OilpanGCTimesSyncScrollKeyMobileSites(benchmark.Benchmark): |
| 48 tag = 'sync_scroll' |
| 49 test = oilpan_gc_times.OilpanGCTimesForSmoothness |
| 50 page_set = page_sets.KeyMobileSitesPageSet |
| 51 def CustomizeBrowserOptions(self, options): |
| 52 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options) |
| OLD | NEW |