| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 class WebrtcDataChannel(_Webrtc): | 44 class WebrtcDataChannel(_Webrtc): |
| 45 """Measures WebRtc DataChannel loopback.""" | 45 """Measures WebRtc DataChannel loopback.""" |
| 46 page_set = page_sets.WebrtcDatachannelPageSet | 46 page_set = page_sets.WebrtcDatachannelPageSet |
| 47 | 47 |
| 48 @classmethod | 48 @classmethod |
| 49 def Name(cls): | 49 def Name(cls): |
| 50 return 'webrtc.datachannel' | 50 return 'webrtc.datachannel' |
| 51 | 51 |
| 52 | 52 |
| 53 @benchmark.Disabled('android') # http://crbug.com/663802 |
| 53 class WebrtcStressTest(perf_benchmark.PerfBenchmark): | 54 class WebrtcStressTest(perf_benchmark.PerfBenchmark): |
| 54 """Measures WebRtc CPU and GPU usage with multiple peer connections.""" | 55 """Measures WebRtc CPU and GPU usage with multiple peer connections.""" |
| 55 page_set = page_sets.WebrtcStresstestPageSet | 56 page_set = page_sets.WebrtcStresstestPageSet |
| 56 | 57 |
| 57 @classmethod | 58 @classmethod |
| 58 def Name(cls): | 59 def Name(cls): |
| 59 return 'webrtc.stress' | 60 return 'webrtc.stress' |
| 60 | 61 |
| 61 def CreatePageTest(self, options): | 62 def CreatePageTest(self, options): |
| 62 return webrtc.WebRTC(use_webrtc_stats=False) | 63 return webrtc.WebRTC(use_webrtc_stats=False) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 81 [webrtc_rendering_timeline.WebRtcRenderingTimelineMetric()]) | 82 [webrtc_rendering_timeline.WebRtcRenderingTimelineMetric()]) |
| 82 return options | 83 return options |
| 83 | 84 |
| 84 def SetExtraBrowserOptions(self, options): | 85 def SetExtraBrowserOptions(self, options): |
| 85 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream') | 86 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream') |
| 86 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream') | 87 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream') |
| 87 | 88 |
| 88 @classmethod | 89 @classmethod |
| 89 def Name(cls): | 90 def Name(cls): |
| 90 return 'webrtc.webrtc_smoothness' | 91 return 'webrtc.webrtc_smoothness' |
| OLD | NEW |