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

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

Issue 1254023003: Telemetry Test for WebRTC Rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use telemetry stats functions. Created 5 years, 2 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/webrtc_rendering.py
diff --git a/tools/perf/benchmarks/webrtc_rendering.py b/tools/perf/benchmarks/webrtc_rendering.py
new file mode 100644
index 0000000000000000000000000000000000000000..cdc81ec588746ea4c85aac0c8a5b4a9c476422cb
--- /dev/null
+++ b/tools/perf/benchmarks/webrtc_rendering.py
@@ -0,0 +1,34 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from core import perf_benchmark
+from telemetry.timeline import tracing_category_filter
+from telemetry.web_perf import timeline_based_measurement
+
+import page_sets
+
+BENCHMARK_VALUES = 'WebRTCRendering_'
+
+class WebRTCRendering(perf_benchmark.PerfBenchmark):
+ """Timeline based benchmark for the WebRtc rendering."""
+
+ page_set = page_sets.WebrtcRenderingPageSet
+
+ def CreateTimelineBasedMeasurementOptions(self):
+ cc_filter = tracing_category_filter.TracingCategoryFilter(
+ filter_string='webrtc, webkit.console, blink.console')
Zhen Wang 2015/10/08 17:56:15 Remove the space here should fix the problem. You
+ return timeline_based_measurement.Options(overhead_level=cc_filter)
+
+ def CustomizeBrowserOptions(self, options):
+ options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream')
+ options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream')
+ options.AppendExtraBrowserArgs('--enable-rtc-smoothness-algorithm')
+
+ @classmethod
+ def Name(cls):
+ return 'webrtc_rendering.webrtc_rendering'
+
+ @classmethod
+ def ValueCanBeAddedPredicate(cls, value, is_first_result):
+ return value.name.startswith(BENCHMARK_VALUES)
« no previous file with comments | « chrome/test/data/webrtc_rendering/loopback_peerconnection.html ('k') | tools/perf/page_sets/webrtc_rendering_measurement.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698