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

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

Issue 1145173002: Add benchmark that tests garbage collector and idle time handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable for Android to avoid OOM crash (benchmark needs > 700MB) Created 5 years, 7 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/idle_multi_tab_cases.js » ('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 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 telemetry import benchmark 5 from telemetry import benchmark
6 6
7 from measurements import memory 7 from measurements import memory
8 import page_sets 8 import page_sets
9 9
10 10
(...skipping 23 matching lines...) Expand all
34 34
35 test = memory.Memory 35 test = memory.Memory
36 page_set = page_sets.Top7StressPageSet 36 page_set = page_sets.Top7StressPageSet
37 37
38 def CustomizeBrowserOptions(self, options): 38 def CustomizeBrowserOptions(self, options):
39 options.AppendExtraBrowserArgs(['--enable-slimming-paint']) 39 options.AppendExtraBrowserArgs(['--enable-slimming-paint'])
40 40
41 @classmethod 41 @classmethod
42 def Name(cls): 42 def Name(cls):
43 return 'memory.top_7_stress_slimming_paint' 43 return 'memory.top_7_stress_slimming_paint'
44
45
46 @benchmark.Enabled('has tabs')
47 @benchmark.Disabled('android') # Benchmark uses > 700MB of memory.
48 class MemoryIdleMultiTab(benchmark.Benchmark):
49 """Use (recorded) real world web sites and measure memory consumption
50 with many tabs and idle times. """
51 test = memory.Memory
52 page_set = page_sets.IdleMultiTabCasesPageSet
53
54 def CustomizeBrowserOptions(self, options):
55 # This benchmark opens tabs from JavaScript, which does not work
56 # with popup-blocking enabled.
57 options.AppendExtraBrowserArgs(['--disable-popup-blocking'])
58
59 @classmethod
60 def Name(cls):
61 return 'memory.idle_multi_tab'
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/idle_multi_tab_cases.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698