| 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 from core import perf_benchmark | 7 from core import perf_benchmark |
| 8 | 8 |
| 9 from benchmarks import blink_perf | 9 from benchmarks import blink_perf |
| 10 from benchmarks import silk_flags | 10 from benchmarks import silk_flags |
| 11 from measurements import oilpan_gc_times | 11 from measurements import oilpan_gc_times |
| 12 from telemetry import benchmark | 12 from telemetry import benchmark |
| 13 import page_sets | 13 import page_sets |
| 14 | 14 |
| 15 | 15 |
| 16 @benchmark.Enabled('content-shell') | 16 @benchmark.Enabled('content-shell') |
| 17 class OilpanGCTimesBlinkPerfStress(perf_benchmark.PerfBenchmark): | 17 class OilpanGCTimesBlinkPerfStress(perf_benchmark.PerfBenchmark): |
| 18 tag = 'blink_perf_stress' | 18 tag = 'blink_perf_stress' |
| 19 test = oilpan_gc_times.OilpanGCTimesForInternals | 19 test = oilpan_gc_times.OilpanGCTimesForInternals |
| 20 | 20 |
| 21 @classmethod | 21 @classmethod |
| 22 def Name(cls): | 22 def Name(cls): |
| 23 return 'oilpan_gc_times.blink_perf_stress' | 23 return 'oilpan_gc_times.blink_perf_stress' |
| 24 | 24 |
| 25 def CreateStorySet(self, options): | 25 def CreatePageSet(self, options): |
| 26 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'BlinkGC') | 26 path = os.path.join(blink_perf.BLINK_PERF_BASE_DIR, 'BlinkGC') |
| 27 return blink_perf.CreateStorySetFromPath(path, blink_perf.SKIPPED_FILE) | 27 return blink_perf.CreatePageSetFromPath(path, blink_perf.SKIPPED_FILE) |
| 28 | 28 |
| 29 | 29 |
| 30 class OilpanGCTimesSmoothnessAnimation(perf_benchmark.PerfBenchmark): | 30 class OilpanGCTimesSmoothnessAnimation(perf_benchmark.PerfBenchmark): |
| 31 test = oilpan_gc_times.OilpanGCTimesForSmoothness | 31 test = oilpan_gc_times.OilpanGCTimesForSmoothness |
| 32 page_set = page_sets.ToughAnimationCasesPageSet | 32 page_set = page_sets.ToughAnimationCasesPageSet |
| 33 | 33 |
| 34 @classmethod | 34 @classmethod |
| 35 def Name(cls): | 35 def Name(cls): |
| 36 return 'oilpan_gc_times.tough_animation_cases' | 36 return 'oilpan_gc_times.tough_animation_cases' |
| 37 | 37 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 50 class OilpanGCTimesSyncScrollKeyMobileSites(perf_benchmark.PerfBenchmark): | 50 class OilpanGCTimesSyncScrollKeyMobileSites(perf_benchmark.PerfBenchmark): |
| 51 tag = 'sync_scroll' | 51 tag = 'sync_scroll' |
| 52 test = oilpan_gc_times.OilpanGCTimesForSmoothness | 52 test = oilpan_gc_times.OilpanGCTimesForSmoothness |
| 53 page_set = page_sets.KeyMobileSitesSmoothPageSet | 53 page_set = page_sets.KeyMobileSitesSmoothPageSet |
| 54 def SetExtraBrowserOptions(self, options): | 54 def SetExtraBrowserOptions(self, options): |
| 55 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options) | 55 silk_flags.CustomizeBrowserOptionsForSyncScrolling(options) |
| 56 @classmethod | 56 @classmethod |
| 57 def Name(cls): | 57 def Name(cls): |
| 58 return 'oilpan_gc_times.sync_scroll.key_mobile_sites_smooth' | 58 return 'oilpan_gc_times.sync_scroll.key_mobile_sites_smooth' |
| 59 | 59 |
| OLD | NEW |