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

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: 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
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 class MemoryIdleMultiTab(benchmark.Benchmark):
47 """Use (recorded) real world web sites and measure memory consumption
48 with many tabs and idle times. """
49 test = memory.Memory
50 page_set = page_sets.IdleMultiTabCasesPageSet
51
52 def CustomizeBrowserOptions(self, options):
53 # This benchmark opens tabs from JavaScript, which does not work
54 # with popup-blocking enabled.
55 options.AppendExtraBrowserArgs(['--disable-popup-blocking'])
56
57 @classmethod
58 def Name(cls):
59 return 'memory.idle_multi_tab'
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/idle_multi_tab_cases.js » ('j') | tools/perf/page_sets/idle_multi_tab_cases.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698