Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(773)

Side by Side Diff: webrtc/logging/rtc_event_log/rtc_event_log_parser.cc

Issue 2666533002: Add probe logging to RtcEventLog. (Closed)
Patch Set: Rebase + format Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 case rtclog::Event::VIDEO_RECEIVER_CONFIG_EVENT: 76 case rtclog::Event::VIDEO_RECEIVER_CONFIG_EVENT:
77 return ParsedRtcEventLog::EventType::VIDEO_RECEIVER_CONFIG_EVENT; 77 return ParsedRtcEventLog::EventType::VIDEO_RECEIVER_CONFIG_EVENT;
78 case rtclog::Event::VIDEO_SENDER_CONFIG_EVENT: 78 case rtclog::Event::VIDEO_SENDER_CONFIG_EVENT:
79 return ParsedRtcEventLog::EventType::VIDEO_SENDER_CONFIG_EVENT; 79 return ParsedRtcEventLog::EventType::VIDEO_SENDER_CONFIG_EVENT;
80 case rtclog::Event::AUDIO_RECEIVER_CONFIG_EVENT: 80 case rtclog::Event::AUDIO_RECEIVER_CONFIG_EVENT:
81 return ParsedRtcEventLog::EventType::AUDIO_RECEIVER_CONFIG_EVENT; 81 return ParsedRtcEventLog::EventType::AUDIO_RECEIVER_CONFIG_EVENT;
82 case rtclog::Event::AUDIO_SENDER_CONFIG_EVENT: 82 case rtclog::Event::AUDIO_SENDER_CONFIG_EVENT:
83 return ParsedRtcEventLog::EventType::AUDIO_SENDER_CONFIG_EVENT; 83 return ParsedRtcEventLog::EventType::AUDIO_SENDER_CONFIG_EVENT;
84 case rtclog::Event::AUDIO_NETWORK_ADAPTATION_EVENT: 84 case rtclog::Event::AUDIO_NETWORK_ADAPTATION_EVENT:
85 return ParsedRtcEventLog::EventType::AUDIO_NETWORK_ADAPTATION_EVENT; 85 return ParsedRtcEventLog::EventType::AUDIO_NETWORK_ADAPTATION_EVENT;
86 case rtclog::Event::BWE_PROBE_CLUSTER_CREATED_EVENT:
87 return ParsedRtcEventLog::EventType::BWE_PROBE_CLUSTER_CREATED_EVENT;
88 case rtclog::Event::BWE_PROBE_RESULT_EVENT:
89 return ParsedRtcEventLog::EventType::BWE_PROBE_RESULT_EVENT;
86 } 90 }
87 RTC_NOTREACHED(); 91 RTC_NOTREACHED();
88 return ParsedRtcEventLog::EventType::UNKNOWN_EVENT; 92 return ParsedRtcEventLog::EventType::UNKNOWN_EVENT;
89 } 93 }
90 94
91 BandwidthUsage GetRuntimeDetectorState( 95 BandwidthUsage GetRuntimeDetectorState(
92 rtclog::DelayBasedBweUpdate::DetectorState detector_state) { 96 rtclog::DelayBasedBweUpdate::DetectorState detector_state) {
93 switch (detector_state) { 97 switch (detector_state) {
94 case rtclog::DelayBasedBweUpdate::BWE_NORMAL: 98 case rtclog::DelayBasedBweUpdate::BWE_NORMAL:
95 return kBwNormal; 99 return kBwNormal;
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 if (ana_event.has_frame_length_ms()) 529 if (ana_event.has_frame_length_ms())
526 config->frame_length_ms = rtc::Optional<int>(ana_event.frame_length_ms()); 530 config->frame_length_ms = rtc::Optional<int>(ana_event.frame_length_ms());
527 if (ana_event.has_num_channels()) 531 if (ana_event.has_num_channels())
528 config->num_channels = rtc::Optional<size_t>(ana_event.num_channels()); 532 config->num_channels = rtc::Optional<size_t>(ana_event.num_channels());
529 if (ana_event.has_uplink_packet_loss_fraction()) 533 if (ana_event.has_uplink_packet_loss_fraction())
530 config->uplink_packet_loss_fraction = 534 config->uplink_packet_loss_fraction =
531 rtc::Optional<float>(ana_event.uplink_packet_loss_fraction()); 535 rtc::Optional<float>(ana_event.uplink_packet_loss_fraction());
532 } 536 }
533 537
534 } // namespace webrtc 538 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/logging/rtc_event_log/rtc_event_log_parser.h ('k') | webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698