OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 case webrtc::rtclog::Event::AUDIO_RECEIVER_CONFIG_EVENT: | 153 case webrtc::rtclog::Event::AUDIO_RECEIVER_CONFIG_EVENT: |
154 return "AUDIO_RECV_CONFIG"; | 154 return "AUDIO_RECV_CONFIG"; |
155 case webrtc::rtclog::Event::AUDIO_SENDER_CONFIG_EVENT: | 155 case webrtc::rtclog::Event::AUDIO_SENDER_CONFIG_EVENT: |
156 return "AUDIO_SEND_CONFIG"; | 156 return "AUDIO_SEND_CONFIG"; |
157 case webrtc::rtclog::Event::AUDIO_NETWORK_ADAPTATION_EVENT: | 157 case webrtc::rtclog::Event::AUDIO_NETWORK_ADAPTATION_EVENT: |
158 return "AUDIO_NETWORK_ADAPTATION"; | 158 return "AUDIO_NETWORK_ADAPTATION"; |
159 case webrtc::rtclog::Event::BWE_PROBE_CLUSTER_CREATED_EVENT: | 159 case webrtc::rtclog::Event::BWE_PROBE_CLUSTER_CREATED_EVENT: |
160 return "BWE_PROBE_CREATED"; | 160 return "BWE_PROBE_CREATED"; |
161 case webrtc::rtclog::Event::BWE_PROBE_RESULT_EVENT: | 161 case webrtc::rtclog::Event::BWE_PROBE_RESULT_EVENT: |
162 return "BWE_PROBE_RESULT"; | 162 return "BWE_PROBE_RESULT"; |
163 case webrtc::rtclog::Event::HOST_LOOKUP_EVENT: | |
164 return "HOST_LOOKUP"; | |
165 } | 163 } |
166 RTC_NOTREACHED(); | 164 RTC_NOTREACHED(); |
167 return "UNKNOWN_EVENT"; | 165 return "UNKNOWN_EVENT"; |
168 } | 166 } |
169 | 167 |
170 } // namespace | 168 } // namespace |
171 | 169 |
172 // This utility will print basic information about each packet to stdout. | 170 // This utility will print basic information about each packet to stdout. |
173 // Note that parser will assert if the protobuf event is missing some required | 171 // Note that parser will assert if the protobuf event is missing some required |
174 // fields and we attempt to access them. We don't handle this at the moment. | 172 // fields and we attempt to access them. We don't handle this at the moment. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 static_cast<double>(malformed_event_size) / malformed_events, | 244 static_cast<double>(malformed_event_size) / malformed_events, |
247 static_cast<double>(malformed_event_size) / file_size * 100); | 245 static_cast<double>(malformed_event_size) / file_size * 100); |
248 } | 246 } |
249 if (file_size - accumulated_event_size != 0) { | 247 if (file_size - accumulated_event_size != 0) { |
250 printf("WARNING: %" PRId64 " bytes not accounted for\n", | 248 printf("WARNING: %" PRId64 " bytes not accounted for\n", |
251 file_size - accumulated_event_size); | 249 file_size - accumulated_event_size); |
252 } | 250 } |
253 | 251 |
254 return 0; | 252 return 0; |
255 } | 253 } |
OLD | NEW |