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

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: Remove mocks to fix border effects on subsequent tests 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
« no previous file with comments | « no previous file | tools/perf/page_sets/webrtc_rendering/loopback_peerconnection.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..273c71b3b02d126d1873659c258b3e6572fc856a
--- /dev/null
+++ b/tools/perf/benchmarks/webrtc_rendering.py
@@ -0,0 +1,33 @@
+# 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')
+ return timeline_based_measurement.Options(overhead_level=cc_filter)
+
+ def SetExtraBrowserOptions(self, options):
+ options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream')
+ options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream')
+
+ @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 | « no previous file | tools/perf/page_sets/webrtc_rendering/loopback_peerconnection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698