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

Side by Side Diff: tools/perf/benchmarks/webrtc.py

Issue 2778233002: Enable WebRTC telemetry tests on Android. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from core import perf_benchmark 5 from core import perf_benchmark
6 6
7 from measurements import webrtc 7 from measurements import webrtc
8 import page_sets 8 import page_sets
9 from telemetry import benchmark 9 from telemetry import benchmark
10 from telemetry.timeline import chrome_trace_category_filter 10 from telemetry.timeline import chrome_trace_category_filter
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 @benchmark.Owner(emails=['phoglund@chromium.org']) 44 @benchmark.Owner(emails=['phoglund@chromium.org'])
45 class WebrtcDataChannel(_Webrtc): 45 class WebrtcDataChannel(_Webrtc):
46 """Measures WebRtc DataChannel loopback.""" 46 """Measures WebRtc DataChannel loopback."""
47 page_set = page_sets.WebrtcDatachannelPageSet 47 page_set = page_sets.WebrtcDatachannelPageSet
48 48
49 @classmethod 49 @classmethod
50 def Name(cls): 50 def Name(cls):
51 return 'webrtc.datachannel' 51 return 'webrtc.datachannel'
52 52
53 53
54 @benchmark.Disabled('android') # http://crbug.com/663802
55 @benchmark.Owner(emails=['ehmaldonado@chromium.org', 'phoglund@chromium.org']) 54 @benchmark.Owner(emails=['ehmaldonado@chromium.org', 'phoglund@chromium.org'])
56 class WebrtcStressTest(perf_benchmark.PerfBenchmark): 55 class WebrtcStressTest(perf_benchmark.PerfBenchmark):
57 """Measures WebRtc CPU and GPU usage with multiple peer connections.""" 56 """Measures WebRtc CPU and GPU usage with multiple peer connections."""
58 page_set = page_sets.WebrtcStresstestPageSet 57 page_set = page_sets.WebrtcStresstestPageSet
59 58
60 @classmethod 59 @classmethod
61 def Name(cls): 60 def Name(cls):
62 return 'webrtc.stress' 61 return 'webrtc.stress'
63 62
64 def CreatePageTest(self, options): 63 def CreatePageTest(self, options):
(...skipping 26 matching lines...) Expand all
91 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream') 90 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream')
92 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream') 91 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream')
93 92
94 @classmethod 93 @classmethod
95 def Name(cls): 94 def Name(cls):
96 return 'webrtc.webrtc_smoothness' 95 return 'webrtc.webrtc_smoothness'
97 96
98 97
99 # WebrtcRenderingTBMv2 must be a PerfBenchmark, and not a _Webrtc, because it is 98 # WebrtcRenderingTBMv2 must be a PerfBenchmark, and not a _Webrtc, because it is
100 # a timeline-based metric. 99 # a timeline-based metric.
101 @benchmark.Disabled('android') # crbug.com/702201
102 @benchmark.Owner(emails=['ehmaldonado@chromium.org', 100 @benchmark.Owner(emails=['ehmaldonado@chromium.org',
103 'phoglund@chromium.org', 101 'phoglund@chromium.org',
104 'qiangchen@chromium.org']) 102 'qiangchen@chromium.org'])
105 class WebrtcRenderingTBMv2(perf_benchmark.PerfBenchmark): 103 class WebrtcRenderingTBMv2(perf_benchmark.PerfBenchmark):
106 """Specific time measurements (e.g. fps, smoothness) for WebRtc rendering.""" 104 """Specific time measurements (e.g. fps, smoothness) for WebRtc rendering."""
107 105
108 page_set = page_sets.WebrtcRenderingPageSet 106 page_set = page_sets.WebrtcRenderingPageSet
109 107
110 def CreateTimelineBasedMeasurementOptions(self): 108 def CreateTimelineBasedMeasurementOptions(self):
111 category_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter( 109 category_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter(
112 filter_string='webrtc,toplevel') 110 filter_string='webrtc,toplevel')
113 options = timeline_based_measurement.Options(category_filter) 111 options = timeline_based_measurement.Options(category_filter)
114 options.SetTimelineBasedMetrics([ 112 options.SetTimelineBasedMetrics([
115 'cpuTimeMetric', 113 'cpuTimeMetric',
116 'expectedQueueingTimeMetric', 114 'expectedQueueingTimeMetric',
117 'webrtcRenderingMetric', 115 'webrtcRenderingMetric',
118 ]) 116 ])
119 return options 117 return options
120 118
121 def SetExtraBrowserOptions(self, options): 119 def SetExtraBrowserOptions(self, options):
122 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream') 120 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream')
123 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream') 121 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream')
124 122
125 @classmethod 123 @classmethod
126 def Name(cls): 124 def Name(cls):
127 return 'webrtc.webrtc_smoothness_tbmv2' 125 return 'webrtc.webrtc_smoothness_tbmv2'
OLDNEW
« 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