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

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

Issue 2052753002: [telemetry] Add new tracing benchmark for background mode memory-infra (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browsertest_background
Patch Set: new benchmark. Created 4 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/tracing.py
diff --git a/tools/perf/benchmarks/tracing.py b/tools/perf/benchmarks/tracing.py
index 95cc44d197325c57e5d5aaa2913aed9c1976de26..8c2d197b0bc8bb4b199d18955b2f374a4ca53910 100644
--- a/tools/perf/benchmarks/tracing.py
+++ b/tools/perf/benchmarks/tracing.py
@@ -4,6 +4,9 @@
from core import perf_benchmark
+from telemetry import benchmark
+from telemetry.timeline import tracing_category_filter
+from telemetry.timeline import tracing_config
from telemetry.web_perf import timeline_based_measurement
import page_sets
@@ -22,3 +25,28 @@ class TracingWithDebugOverhead(perf_benchmark.PerfBenchmark):
@classmethod
def Name(cls):
return 'tracing.tracing_with_debug_overhead'
+
+
+# Enable on reference builds once stable browser starts supporting background
Zhen Wang 2016/06/17 19:45:22 Can you add it as TODO here?
ssid 2016/06/17 21:02:46 Done.
+# mode memory-infra (after branch 2760).
+@benchmark.Disabled('reference')
+class TracingWithBackgroundMemoryInfra(perf_benchmark.PerfBenchmark):
+ """Measures the timeline metrics for overhead of background memory-infra
Zhen Wang 2016/06/17 19:45:22 This should be one line. Then followed by detailed
ssid 2016/06/17 21:02:46 Done.
+ dumps"""
+ page_set = page_sets.Top10PageSet
+
+ def CreateTimelineBasedMeasurementOptions(self):
+ # Enable only memory-infra category with periodic background mode dumps
+ # every 200 milliseconds.
+ trace_memory = tracing_category_filter.TracingCategoryFilter(
+ filter_string='-*,blink.console,disabled-by-default-memory-infra')
Zhen Wang 2016/06/17 19:45:22 What does "-*" mean here?
ssid 2016/06/17 21:02:46 -* means it excludes all the default categories. T
+ options = timeline_based_measurement.Options(overhead_level=trace_memory)
+ memory_dump_config = tracing_config.MemoryDumpConfig()
+ memory_dump_config.AddTrigger('background', 200)
+ options.config.SetMemoryDumpConfig(memory_dump_config)
+ options.SetTimelineBasedMetric('tracingMetric')
+ return options
+
+ @classmethod
+ def Name(cls):
+ return 'tracing.tracing_with_background_memory_infra'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698