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

Unified Diff: tools/perf/benchmarks/memory_infra.py

Issue 1931533002: Port memory.long_running_idle_gmail benchmarks to TBMv2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: tools/perf/benchmarks/memory_infra.py
diff --git a/tools/perf/benchmarks/memory_infra.py b/tools/perf/benchmarks/memory_infra.py
index 801dd47e90875fa157647f2a38b3fdd990eda5b4..aaae4705e9c458790b7e01e1904c87c1c59e48dc 100644
--- a/tools/perf/benchmarks/memory_infra.py
+++ b/tools/perf/benchmarks/memory_infra.py
@@ -10,7 +10,6 @@ from telemetry import benchmark
from telemetry.timeline import tracing_category_filter
from telemetry.web_perf import timeline_based_measurement
from telemetry.web_perf.metrics import memory_timeline
-from telemetry.web_perf.metrics import v8_gc_latency
import page_sets
@@ -118,37 +117,44 @@ class MemoryBenchmarkTop10Mobile(_MemoryInfra):
return 'memory.top_10_mobile'
-# Disabled on reference builds because they don't support the new
-# Tracing.requestMemoryDump DevTools API.
-# For 'reference' see http://crbug.com/540022.
-# For 'android' see http://crbug.com/579546.
-@benchmark.Disabled('reference', 'android')
-class MemoryLongRunningIdleGmailTBM(_MemoryInfra):
- """Use (recorded) real world web sites and measure memory consumption
- of long running idle Gmail page """
- page_set = page_sets.LongRunningIdleGmailPageSet
-
+class _MemoryV8Benchmark(_MemoryInfra):
def CreateTimelineBasedMeasurementOptions(self):
v8_categories = [
petrcermak 2016/04/27 16:22:17 v8_categories and memory_categories could be class
ulan 2016/04/28 14:34:35 Since they are not reused, I'd prefer to keep them
petrcermak 2016/04/28 14:38:45 if you prefix them with an underscore, they will t
'blink.console', 'renderer.scheduler', 'v8', 'webkit.console']
- memory_categories = 'blink.console,disabled-by-default-memory-infra'
+ memory_categories = ['blink.console', 'disabled-by-default-memory-infra']
+ all_categories = v8_categories + memory_categories
petrcermak 2016/04/27 16:22:17 1) Note that this will contain 'blink.console' twi
ulan 2016/04/28 14:34:35 2, 3 - done. TracingCategoryFilter can handle dupl
category_filter = tracing_category_filter.TracingCategoryFilter(
- memory_categories)
- for category in v8_categories:
- category_filter.AddIncludedCategory(category)
+ ','.join(all_categories))
options = timeline_based_measurement.Options(category_filter)
return options
def SetupBenchmarkDefaultTraceRerunOptions(self, tbm_options):
perezju 2016/04/27 16:29:42 we're getting rid of these TraceRerun* methods, ju
ulan 2016/04/28 14:34:35 I tried to that, but then _MemoryInfra.SetupBenchm
perezju 2016/04/28 14:45:09 This is no longer true after Petr's CL https://cod
- tbm_options.SetLegacyTimelineBasedMetrics((
- v8_gc_latency.V8GCLatency(),
- memory_timeline.MemoryTimelineMetric(),
- ))
+ tbm_options.SetTimelineBasedMetric('v8AndMemoryMetrics')
+
petrcermak 2016/04/27 16:22:17 nit: add one more blank line here (there should be
ulan 2016/04/28 14:34:35 Done.
+# Disabled on reference builds because they don't support the new
+# Tracing.requestMemoryDump DevTools API.
+# For 'reference' see http://crbug.com/540022.
+# For 'android' see http://crbug.com/579546.
perezju 2016/04/27 16:29:43 That bug shows that the (non-tbm) benchmark was re
ulan 2016/04/28 14:34:35 Acknowledged. I will re-enable in a different CL.
+@benchmark.Disabled('reference', 'android')
+class MemoryLongRunningIdleGmail(_MemoryV8Benchmark):
+ """Use (recorded) real world web sites and measure memory consumption
+ of long running idle Gmail page """
+ page_set = page_sets.LongRunningIdleGmailPageSet
@classmethod
def Name(cls):
- return 'memory.long_running_idle_gmail_tbm'
+ return 'memory.long_running_idle_gmail_tbmv2'
+
petrcermak 2016/04/27 16:22:17 ditto: add extra blank line
ulan 2016/04/28 14:34:35 Done.
+# Disabled on reference builds because they don't support the new
+# Tracing.requestMemoryDump DevTools API.
+# For 'reference' see http://crbug.com/540022.
+# For 'android' see http://crbug.com/579546.
+@benchmark.Disabled('reference', 'android')
+class MemoryLongRunningIdleGmailBackground(_MemoryV8Benchmark):
+ """Use (recorded) real world web sites and measure memory consumption
+ of long running idle Gmail page """
+ page_set = page_sets.LongRunningIdleGmailBackgroundPageSet
@classmethod
- def ShouldTearDownStateAfterEachStoryRun(cls):
- return True
+ def Name(cls):
+ return 'memory.long_running_idle_gmail_background_tbmv2'

Powered by Google App Engine
This is Rietveld 408576698