Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(938)

Side by Side Diff: tools/perf/benchmarks/memory.py

Issue 2764663002: Fix desktop.memory measurement to emit memory-infra dumps. (Closed)
Patch Set: Add back gpu config. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/perf/page_sets/trivial_sites.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 # each time before Chrome starts so we effect even the first page 49 # each time before Chrome starts so we effect even the first page
50 # - avoiding the bug. 50 # - avoiding the bug.
51 options.clear_sytem_cache_for_browser_and_profile_on_start = True 51 options.clear_sytem_cache_for_browser_and_profile_on_start = True
52 52
53 53
54 @benchmark.Enabled('mac') 54 @benchmark.Enabled('mac')
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 page_set = page_sets.TrivialSitesStorySet
60 options = {'pageset_repeat': 5} 59 options = {'pageset_repeat': 5}
61 60
61 def CreateStorySet(self, options):
62 return page_sets.TrivialSitesStorySet(wait_in_seconds=0,
63 measure_memory=True)
64
62 @classmethod 65 @classmethod
63 def Name(cls): 66 def Name(cls):
64 return 'memory.desktop' 67 return 'memory.desktop'
65 68
66 @classmethod 69 @classmethod
67 def ShouldTearDownStateAfterEachStoryRun(cls): 70 def ShouldTearDownStateAfterEachStoryRun(cls):
68 return True 71 return True
69 72
70 @classmethod 73 @classmethod
71 def ValueCanBeAddedPredicate(cls, value, is_first_result): 74 def ValueCanBeAddedPredicate(cls, value, is_first_result):
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 of long running idle Gmail page """ 272 of long running idle Gmail page """
270 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet 273 page_set = page_sets.LongRunningIdleGmailBackgroundPageSet
271 274
272 @classmethod 275 @classmethod
273 def Name(cls): 276 def Name(cls):
274 return 'memory.long_running_idle_gmail_background_tbmv2' 277 return 'memory.long_running_idle_gmail_background_tbmv2'
275 278
276 @classmethod 279 @classmethod
277 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530 280 def ShouldDisable(cls, possible_browser): # http://crbug.com/616530
278 return cls.IsSvelte(possible_browser) 281 return cls.IsSvelte(possible_browser)
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/trivial_sites.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698