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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from core import perf_benchmark
6 from telemetry.timeline import tracing_category_filter
7 from telemetry.web_perf import timeline_based_measurement
8
9 import page_sets
10
11 BENCHMARK_VALUES = 'WebRTCRendering_'
12
13 class WebRTCRendering(perf_benchmark.PerfBenchmark):
14 """Timeline based benchmark for the WebRtc rendering."""
15
16 page_set = page_sets.WebrtcRenderingPageSet
17
18 def CreateTimelineBasedMeasurementOptions(self):
19 cc_filter = tracing_category_filter.TracingCategoryFilter(
20 filter_string='webrtc, webkit.console, blink.console')
Zhen Wang 2015/10/08 17:56:15 Remove the space here should fix the problem. You
21 return timeline_based_measurement.Options(overhead_level=cc_filter)
22
23 def CustomizeBrowserOptions(self, options):
24 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream')
25 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream')
26 options.AppendExtraBrowserArgs('--enable-rtc-smoothness-algorithm')
27
28 @classmethod
29 def Name(cls):
30 return 'webrtc_rendering.webrtc_rendering'
31
32 @classmethod
33 def ValueCanBeAddedPredicate(cls, value, is_first_result):
34 return value.name.startswith(BENCHMARK_VALUES)
OLDNEW
« 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