| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 memory | 7 from measurements import memory |
| 8 import page_sets | 8 import page_sets |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 | 10 |
| 11 | 11 |
| 12 @benchmark.Disabled('all') | 12 @benchmark.Enabled('android') |
| 13 class MemoryMobile(perf_benchmark.PerfBenchmark): | 13 class MemoryMobile(perf_benchmark.PerfBenchmark): |
| 14 test = memory.Memory | 14 test = memory.Memory |
| 15 page_set = page_sets.MobileMemoryPageSet | 15 page_set = page_sets.MobileMemoryPageSet |
| 16 | 16 |
| 17 @classmethod | 17 @classmethod |
| 18 def Name(cls): | 18 def Name(cls): |
| 19 return 'memory.mobile_memory' | 19 return 'memory.mobile_memory' |
| 20 | 20 |
| 21 | 21 |
| 22 # Disable on yosemite due to crbug.com/517806 | 22 # Disable on yosemite due to crbug.com/517806 |
| 23 # Disable on reference due to crbug.com/539728 | 23 # Disable on reference due to crbug.com/539728 |
| 24 # Disable on all Mac as it's also failing on 10.11 and retina. | 24 # Disable on all Mac as it's also failing on 10.11 and retina. |
| 25 # crbug.com/555045 | 25 # crbug.com/555045 |
| 26 @benchmark.Disabled('mac', 'reference') | 26 @benchmark.Disabled('mac', 'reference') |
| 27 class MemoryTop7Stress(perf_benchmark.PerfBenchmark): | 27 class MemoryTop7Stress(perf_benchmark.PerfBenchmark): |
| 28 """Use (recorded) real world web sites and measure memory consumption.""" | 28 """Use (recorded) real world web sites and measure memory consumption.""" |
| 29 test = memory.Memory | 29 test = memory.Memory |
| 30 page_set = page_sets.Top7StressPageSet | 30 page_set = page_sets.Top7StressPageSet |
| 31 | 31 |
| 32 @classmethod | 32 @classmethod |
| 33 def Name(cls): | 33 def Name(cls): |
| 34 return 'memory.top_7_stress' | 34 return 'memory.top_7_stress' |
| 35 | 35 |
| 36 @classmethod | 36 @classmethod |
| 37 def ShouldDisable(cls, possible_browser): | 37 def ShouldDisable(cls, possible_browser): |
| 38 return cls.IsSvelte(possible_browser) # http://crbug.com/555092 | 38 return cls.IsSvelte(possible_browser) # http://crbug.com/555092 |
| 39 | 39 |
| OLD | NEW |