| 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"; |
| 163 } | 165 } |
| 164 RTC_NOTREACHED(); | 166 RTC_NOTREACHED(); |
| 165 return "UNKNOWN_EVENT"; | 167 return "UNKNOWN_EVENT"; |
| 166 } | 168 } |
| 167 | 169 |
| 168 } // namespace | 170 } // namespace |
| 169 | 171 |
| 170 // This utility will print basic information about each packet to stdout. | 172 // This utility will print basic information about each packet to stdout. |
| 171 // Note that parser will assert if the protobuf event is missing some required | 173 // Note that parser will assert if the protobuf event is missing some required |
| 172 // fields and we attempt to access them. We don't handle this at the moment. | 174 // 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... |
| 244 static_cast<double>(malformed_event_size) / malformed_events, | 246 static_cast<double>(malformed_event_size) / malformed_events, |
| 245 static_cast<double>(malformed_event_size) / file_size * 100); | 247 static_cast<double>(malformed_event_size) / file_size * 100); |
| 246 } | 248 } |
| 247 if (file_size - accumulated_event_size != 0) { | 249 if (file_size - accumulated_event_size != 0) { |
| 248 printf("WARNING: %" PRId64 " bytes not accounted for\n", | 250 printf("WARNING: %" PRId64 " bytes not accounted for\n", |
| 249 file_size - accumulated_event_size); | 251 file_size - accumulated_event_size); |
| 250 } | 252 } |
| 251 | 253 |
| 252 return 0; | 254 return 0; |
| 253 } | 255 } |
| OLD | NEW |