| 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 tracing_category_filter | 10 from telemetry.timeline import tracing_category_filter |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 @classmethod | 53 @classmethod |
| 54 def Name(cls): | 54 def Name(cls): |
| 55 return 'webrtc.datachannel' | 55 return 'webrtc.datachannel' |
| 56 | 56 |
| 57 | 57 |
| 58 # WebrtcRendering must be a PerfBenchmark, and not a _Webrtc, because it is a | 58 # WebrtcRendering must be a PerfBenchmark, and not a _Webrtc, because it is a |
| 59 # timeline-based. | 59 # timeline-based. |
| 60 # Disabled on reference builds because they crash and don't support tab | 60 # Disabled on reference builds because they crash and don't support tab |
| 61 # capture. See http://crbug.com/603232. | 61 # capture. See http://crbug.com/603232. |
| 62 @benchmark.Disabled('reference') | 62 @benchmark.Disabled('reference') |
| 63 @benchmark.Disabled('android') # http://crbug.com/610019 |
| 63 class WebrtcRendering(perf_benchmark.PerfBenchmark): | 64 class WebrtcRendering(perf_benchmark.PerfBenchmark): |
| 64 """Specific time measurements (e.g. fps, smoothness) for WebRtc rendering.""" | 65 """Specific time measurements (e.g. fps, smoothness) for WebRtc rendering.""" |
| 65 | 66 |
| 66 page_set = page_sets.WebrtcRenderingPageSet | 67 page_set = page_sets.WebrtcRenderingPageSet |
| 67 | 68 |
| 68 def CreateTimelineBasedMeasurementOptions(self): | 69 def CreateTimelineBasedMeasurementOptions(self): |
| 69 category_filter = tracing_category_filter.TracingCategoryFilter( | 70 category_filter = tracing_category_filter.TracingCategoryFilter( |
| 70 filter_string='webrtc,webkit.console,blink.console') | 71 filter_string='webrtc,webkit.console,blink.console') |
| 71 options = timeline_based_measurement.Options(category_filter) | 72 options = timeline_based_measurement.Options(category_filter) |
| 72 options.SetLegacyTimelineBasedMetrics( | 73 options.SetLegacyTimelineBasedMetrics( |
| 73 [webrtc_rendering_timeline.WebRtcRenderingTimelineMetric()]) | 74 [webrtc_rendering_timeline.WebRtcRenderingTimelineMetric()]) |
| 74 return options | 75 return options |
| 75 | 76 |
| 76 def SetExtraBrowserOptions(self, options): | 77 def SetExtraBrowserOptions(self, options): |
| 77 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream') | 78 options.AppendExtraBrowserArgs('--use-fake-device-for-media-stream') |
| 78 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream') | 79 options.AppendExtraBrowserArgs('--use-fake-ui-for-media-stream') |
| 79 | 80 |
| 80 @classmethod | 81 @classmethod |
| 81 def Name(cls): | 82 def Name(cls): |
| 82 return 'webrtc.webrtc_smoothness' | 83 return 'webrtc.webrtc_smoothness' |
| OLD | NEW |