| OLD | NEW |
| 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 Loading... |
| 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('win') |
| 54 @benchmark.Owner(emails=['ehmaldonado@chromium.org', 'phoglund@chromium.org']) | 55 @benchmark.Owner(emails=['ehmaldonado@chromium.org', 'phoglund@chromium.org']) |
| 55 class WebrtcStressTest(perf_benchmark.PerfBenchmark): | 56 class WebrtcStressTest(perf_benchmark.PerfBenchmark): |
| 56 """Measures WebRtc CPU and GPU usage with multiple peer connections.""" | 57 """Measures WebRtc CPU and GPU usage with multiple peer connections.""" |
| 57 page_set = page_sets.WebrtcStresstestPageSet | 58 page_set = page_sets.WebrtcStresstestPageSet |
| 58 | 59 |
| 59 @classmethod | 60 @classmethod |
| 60 def Name(cls): | 61 def Name(cls): |
| 61 return 'webrtc.stress' | 62 return 'webrtc.stress' |
| 62 | 63 |
| 63 def CreatePageTest(self, options): | 64 def CreatePageTest(self, options): |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 ]) | 117 ]) |
| 117 return options | 118 return options |
| 118 | 119 |
| 119 def SetExtraBrowserOptions(self, options): | 120 def SetExtraBrowserOptions(self, options): |
| 120 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream') | 121 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream') |
| 121 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream') | 122 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream') |
| 122 | 123 |
| 123 @classmethod | 124 @classmethod |
| 124 def Name(cls): | 125 def Name(cls): |
| 125 return 'webrtc.webrtc_smoothness_tbmv2' | 126 return 'webrtc.webrtc_smoothness_tbmv2' |
| OLD | NEW |