| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 @benchmark.Enabled('win') | 55 @benchmark.Enabled('win') |
| 56 @benchmark.Owner(emails=['erikchen@chromium.org']) | 56 @benchmark.Owner(emails=['erikchen@chromium.org']) |
| 57 class MemoryBenchmarkTrivialSitesDesktop(_MemoryInfra): | 57 class MemoryBenchmarkTrivialSitesDesktop(_MemoryInfra): |
| 58 """Measure memory usage on trivial sites.""" | 58 """Measure memory usage on trivial sites.""" |
| 59 options = {'pageset_repeat': 5} | 59 options = {'pageset_repeat': 5} |
| 60 | 60 |
| 61 def CreateStorySet(self, options): | 61 def CreateStorySet(self, options): |
| 62 return page_sets.TrivialSitesStorySet(wait_in_seconds=0, | 62 return page_sets.TrivialSitesStorySet(wait_in_seconds=0, |
| 63 measure_memory=True) | 63 measure_memory=True) |
| 64 | 64 |
| 65 def SetExtraBrowserOptions(self, options): |
| 66 super(MemoryBenchmarkTrivialSitesDesktop, self).SetExtraBrowserOptions( |
| 67 options) |
| 68 options.AppendExtraBrowserArgs([ |
| 69 '--enable-heap-profiling=native', |
| 70 ]) |
| 71 |
| 65 @classmethod | 72 @classmethod |
| 66 def Name(cls): | 73 def Name(cls): |
| 67 return 'memory.desktop' | 74 return 'memory.desktop' |
| 68 | 75 |
| 69 @classmethod | 76 @classmethod |
| 70 def ShouldTearDownStateAfterEachStoryRun(cls): | 77 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 71 return True | 78 return True |
| 72 | 79 |
| 73 @classmethod | 80 @classmethod |
| 74 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 81 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 of long running idle Gmail page """ | 248 of long running idle Gmail page """ |
| 242 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet | 249 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet |
| 243 | 250 |
| 244 @classmethod | 251 @classmethod |
| 245 def Name(cls): | 252 def Name(cls): |
| 246 return 'memory.long_running_idle_gmail_background_tbmv2' | 253 return 'memory.long_running_idle_gmail_background_tbmv2' |
| 247 | 254 |
| 248 @classmethod | 255 @classmethod |
| 249 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 | 256 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 |
| 250 return cls.IsSvelte(possible_browser) | 257 return cls.IsSvelte(possible_browser) |
| OLD | NEW |