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

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

Issue 1773103002: Replace memory.long_running_idle_gmail with TBM based version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move to memory-infra Created 4 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 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 737f9287f05c936196de0bcf80c874fdfe44dfed..8cbfee2d70fa29f93626da98caca1cab8e893f57 100644
--- a/tools/perf/benchmarks/memory_infra.py
+++ b/tools/perf/benchmarks/memory_infra.py
@@ -10,6 +10,7 @@ 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
@@ -115,3 +116,34 @@ class MemoryBenchmarkTop10Mobile(_MemoryInfra):
@classmethod
def Name(cls):
return 'memory.top_10_mobile'
+
+
+# Disabled on reference builds because they don't support the new
+# Tracing.requestMemoryDump DevTools API. See http://crbug.com/540022.
+@benchmark.Disabled('reference', 'android') # crbug.com/579546
perezju 2016/03/10 09:34:36 nit: add a short sentence explaining why it's disa
ulan 2016/03/10 11:09:25 Done.
+class MemoryLongRunningIdleGmailTBM(_MemoryInfra):
+ """Use (recorded) real world web sites and measure memory consumption
+ of long running idle Gmail page """
+ page_set = page_sets.LongRunningIdleGmailPageSet
+
+ def CreateTimelineBasedMeasurementOptions(self):
+ v8_categories = [
+ 'blink.console', 'renderer.scheduler', 'v8', 'webkit.console']
+ memory_categories = 'blink.console,disabled-by-default-memory-infra'
+ category_filter = tracing_category_filter.TracingCategoryFilter(
+ memory_categories)
+ for category in v8_categories:
+ category_filter.AddIncludedCategory(category)
+ options = timeline_based_measurement.Options(category_filter)
+ options.SetLegacyTimelineBasedMetrics([
+ v8_gc_latency.V8GCLatency(),
+ memory_timeline.MemoryTimelineMetric()])
+ return options
+
+ @classmethod
+ def Name(cls):
+ return 'memory.long_running_idle_gmail_tbm'
+
+ @classmethod
+ def ShouldTearDownStateAfterEachStoryRun(cls):
+ return True

Powered by Google App Engine
This is Rietveld 408576698