| 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 telemetry import benchmark | 11 from telemetry import benchmark |
| 12 from telemetry.core import util | 12 from telemetry.core import util |
| 13 from telemetry import page | 13 from telemetry import page |
| 14 | 14 |
| 15 | 15 |
| 16 class OilpanGCTimesBlinkPerfAnimation(benchmark.Benchmark): | 16 class OilpanGCTimesBlinkPerfAnimation(benchmark.Benchmark): |
| 17 tag = 'blink_perf_animation' | 17 tag = 'blink_perf_animation' |
| 18 test = oilpan_gc_times.OilpanGCTimesForBlinkPerf | 18 test = oilpan_gc_times.OilpanGCTimesForBlinkPerf |
| 19 | 19 |
| 20 @classmethod |
| 21 def Name(cls): |
| 22 return 'oilpan_gc_times.blink_perf_animation' |
| 23 |
| 20 def CreatePageSet(self, options): | 24 def CreatePageSet(self, options): |
| 21 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'Animation') | 25 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'Animation') |
| 22 return blink_perf.CreatePageSetFromPath(path, blink_perf.SKIPPED_FILE) | 26 return blink_perf.CreatePageSetFromPath(path, blink_perf.SKIPPED_FILE) |
| 23 | 27 |
| 24 | 28 |
| 25 @benchmark.Enabled('content-shell') | 29 @benchmark.Enabled('content-shell') |
| 26 class OilpanGCTimesBlinkPerfStress(benchmark.Benchmark): | 30 class OilpanGCTimesBlinkPerfStress(benchmark.Benchmark): |
| 27 tag = 'blink_perf_stress' | 31 tag = 'blink_perf_stress' |
| 28 test = oilpan_gc_times.OilpanGCTimesForInternals | 32 test = oilpan_gc_times.OilpanGCTimesForInternals |
| 29 | 33 |
| 34 @classmethod |
| 35 def Name(cls): |
| 36 return 'oilpan_gc_times.blink_perf_stress' |
| 37 |
| 30 def CreatePageSet(self, options): | 38 def CreatePageSet(self, options): |
| 31 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'BlinkGC') | 39 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'BlinkGC') |
| 32 return blink_perf.CreatePageSetFromPath(path, blink_perf.SKIPPED_FILE) | 40 return blink_perf.CreatePageSetFromPath(path, blink_perf.SKIPPED_FILE) |
| 33 | 41 |
| 34 | 42 |
| 35 class OilpanGCTimesSmoothnessAnimation(benchmark.Benchmark): | 43 class OilpanGCTimesSmoothnessAnimation(benchmark.Benchmark): |
| 36 test = oilpan_gc_times.OilpanGCTimesForSmoothness | 44 test = oilpan_gc_times.OilpanGCTimesForSmoothness |
| 37 page_set = page_sets.ToughAnimationCasesPageSet | 45 page_set = page_sets.ToughAnimationCasesPageSet |
| 38 | 46 |
| 47 @classmethod |
| 48 def Name(cls): |
| 49 return 'oilpan_gc_times.tough_animation_cases' |
| 50 |
| 39 | 51 |
| 40 @benchmark.Enabled('android') | 52 @benchmark.Enabled('android') |
| 41 class OilpanGCTimesKeySilkCases(benchmark.Benchmark): | 53 class OilpanGCTimesKeySilkCases(benchmark.Benchmark): |
| 42 test = oilpan_gc_times.OilpanGCTimesForSmoothness | 54 test = oilpan_gc_times.OilpanGCTimesForSmoothness |
| 43 page_set = page_sets.KeySilkCasesPageSet | 55 page_set = page_sets.KeySilkCasesPageSet |
| 44 | 56 |
| 57 @classmethod |
| 58 def Name(cls): |
| 59 return 'oilpan_gc_times.key_silk_cases' |
| 60 |
| 45 | 61 |
| 46 @benchmark.Enabled('android') | 62 @benchmark.Enabled('android') |
| 47 class OilpanGCTimesSyncScrollKeyMobileSites(benchmark.Benchmark): | 63 class OilpanGCTimesSyncScrollKeyMobileSites(benchmark.Benchmark): |
| 48 tag = 'sync_scroll' | 64 tag = 'sync_scroll' |
| 49 test = oilpan_gc_times.OilpanGCTimesForSmoothness | 65 test = oilpan_gc_times.OilpanGCTimesForSmoothness |
| 50 page_set = page_sets.KeyMobileSitesSmoothPageSet | 66 page_set = page_sets.KeyMobileSitesSmoothPageSet |
| 51 def CustomizeBrowserOptions(self, options): | 67 def CustomizeBrowserOptions(self, options): |
| 52 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options) | 68 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options) |
| 69 @classmethod |
| 70 def Name(cls): |
| 71 return 'oilpan_gc_times.sync_scroll.key_mobile_sites_smooth' |
| 72 |
| OLD | NEW |