| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 re | 5 import re |
| 6 | 6 |
| 7 from core import perf_benchmark | 7 from core import perf_benchmark |
| 8 | 8 |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 from telemetry.timeline import chrome_trace_category_filter | 10 from telemetry.timeline import chrome_trace_category_filter |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 """Use (recorded) real world web sites and measure memory consumption | 220 """Use (recorded) real world web sites and measure memory consumption |
| 221 of long running idle Gmail page """ | 221 of long running idle Gmail page """ |
| 222 page_set = page_sets.LongRunningIdleGmailPageSet | 222 page_set = page_sets.LongRunningIdleGmailPageSet |
| 223 | 223 |
| 224 @classmethod | 224 @classmethod |
| 225 def Name(cls): | 225 def Name(cls): |
| 226 return 'memory.long_running_idle_gmail_tbmv2' | 226 return 'memory.long_running_idle_gmail_tbmv2' |
| 227 | 227 |
| 228 @classmethod | 228 @classmethod |
| 229 def ShouldDisable(cls, possible_browser): | 229 def ShouldDisable(cls, possible_browser): |
| 230 return cls.IsSvelte(possible_browser) # http://crbug.com/611167 | 230 return (cls.IsSvelte(possible_browser) or # http://crbug.com/611167 |
| 231 # http://crbug.com/671650 |
| 232 ((possible_browser.browser_type == 'reference' and |
| 233 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5'))) |
| 231 | 234 |
| 232 | 235 |
| 233 @benchmark.Enabled('has tabs') # http://crbug.com/612210 | 236 @benchmark.Enabled('has tabs') # http://crbug.com/612210 |
| 234 class MemoryLongRunningIdleGmailBackground(_MemoryV8Benchmark): | 237 class MemoryLongRunningIdleGmailBackground(_MemoryV8Benchmark): |
| 235 """Use (recorded) real world web sites and measure memory consumption | 238 """Use (recorded) real world web sites and measure memory consumption |
| 236 of long running idle Gmail page """ | 239 of long running idle Gmail page """ |
| 237 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet | 240 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet |
| 238 | 241 |
| 239 @classmethod | 242 @classmethod |
| 240 def Name(cls): | 243 def Name(cls): |
| 241 return 'memory.long_running_idle_gmail_background_tbmv2' | 244 return 'memory.long_running_idle_gmail_background_tbmv2' |
| 242 | 245 |
| 243 @classmethod | 246 @classmethod |
| 244 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 | 247 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 |
| 245 return cls.IsSvelte(possible_browser) | 248 return cls.IsSvelte(possible_browser) |
| OLD | NEW |