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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/memory.py
diff --git a/tools/perf/benchmarks/memory.py b/tools/perf/benchmarks/memory.py
index 44b900a9233bd7a0a6af1f33e2e6ca327e0d11f3..eac1e0775d0e350eeeab2980468f0a44e1c23cc2 100644
--- a/tools/perf/benchmarks/memory.py
+++ b/tools/perf/benchmarks/memory.py
@@ -41,3 +41,21 @@ class MemoryTop7StressWithSlimmingPaint(benchmark.Benchmark):
@classmethod
def Name(cls):
return 'memory.top_7_stress_slimming_paint'
+
+
+@benchmark.Enabled('has tabs')
+@benchmark.Disabled('android') # Benchmark uses > 700MB of memory.
+class MemoryIdleMultiTab(benchmark.Benchmark):
+ """Use (recorded) real world web sites and measure memory consumption
+ with many tabs and idle times. """
+ test = memory.Memory
+ page_set = page_sets.IdleMultiTabCasesPageSet
+
+ def CustomizeBrowserOptions(self, options):
+ # This benchmark opens tabs from JavaScript, which does not work
+ # with popup-blocking enabled.
+ options.AppendExtraBrowserArgs(['--disable-popup-blocking'])
+
+ @classmethod
+ def Name(cls):
+ return 'memory.idle_multi_tab'
« 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