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

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

Issue 2808833002: Delay based logging. (Closed)
Patch Set: Unittest fix. Created 3 years, 8 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
« no previous file with comments | « no previous file | webrtc/logging/rtc_event_log/rtc_event_log_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ 10 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 uint32_t min_bytes; 43 uint32_t min_bytes;
44 }; 44 };
45 45
46 struct BweProbeResultEvent { 46 struct BweProbeResultEvent {
47 uint64_t timestamp; 47 uint64_t timestamp;
48 uint32_t id; 48 uint32_t id;
49 rtc::Optional<uint64_t> bitrate_bps; 49 rtc::Optional<uint64_t> bitrate_bps;
50 rtc::Optional<ProbeFailureReason> failure_reason; 50 rtc::Optional<ProbeFailureReason> failure_reason;
51 }; 51 };
52 52
53 struct BweDelayBasedUpdate {
54 uint64_t timestamp;
55 int32_t bitrate_bps;
56 BandwidthUsage detector_state;
57 };
58
53 enum EventType { 59 enum EventType {
54 UNKNOWN_EVENT = 0, 60 UNKNOWN_EVENT = 0,
55 LOG_START = 1, 61 LOG_START = 1,
56 LOG_END = 2, 62 LOG_END = 2,
57 RTP_EVENT = 3, 63 RTP_EVENT = 3,
58 RTCP_EVENT = 4, 64 RTCP_EVENT = 4,
59 AUDIO_PLAYOUT_EVENT = 5, 65 AUDIO_PLAYOUT_EVENT = 5,
60 LOSS_BASED_BWE_UPDATE = 6, 66 LOSS_BASED_BWE_UPDATE = 6,
61 DELAY_BASED_BWE_UPDATE = 7, 67 DELAY_BASED_BWE_UPDATE = 7,
62 VIDEO_RECEIVER_CONFIG_EVENT = 8, 68 VIDEO_RECEIVER_CONFIG_EVENT = 8,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // value isn't needed. 145 // value isn't needed.
140 void GetLossBasedBweUpdate(size_t index, 146 void GetLossBasedBweUpdate(size_t index,
141 int32_t* bitrate_bps, 147 int32_t* bitrate_bps,
142 uint8_t* fraction_loss, 148 uint8_t* fraction_loss,
143 int32_t* total_packets) const; 149 int32_t* total_packets) const;
144 150
145 // Reads bitrate and detector_state from the delay based BWE event at |index| 151 // Reads bitrate and detector_state from the delay based BWE event at |index|
146 // and stores the values in the corresponding output parameters. Each output 152 // and stores the values in the corresponding output parameters. Each output
147 // parameter can be set to nullptr if that 153 // parameter can be set to nullptr if that
148 // value isn't needed. 154 // value isn't needed.
149 void GetDelayBasedBweUpdate(size_t index, 155 BweDelayBasedUpdate GetDelayBasedBweUpdate(size_t index) const;
150 int32_t* bitrate_bps,
151 BandwidthUsage* detector_state) const;
152 156
153 // Reads a audio network adaptation event to a (non-NULL) 157 // Reads a audio network adaptation event to a (non-NULL)
154 // AudioEncoderRuntimeConfig struct. Only the fields that are 158 // AudioEncoderRuntimeConfig struct. Only the fields that are
155 // stored in the protobuf will be written. 159 // stored in the protobuf will be written.
156 void GetAudioNetworkAdaptation(size_t index, 160 void GetAudioNetworkAdaptation(size_t index,
157 AudioEncoderRuntimeConfig* config) const; 161 AudioEncoderRuntimeConfig* config) const;
158 162
159 ParsedRtcEventLog::BweProbeClusterCreatedEvent GetBweProbeClusterCreated( 163 ParsedRtcEventLog::BweProbeClusterCreatedEvent GetBweProbeClusterCreated(
160 size_t index) const; 164 size_t index) const;
161 165
162 ParsedRtcEventLog::BweProbeResultEvent GetBweProbeResult(size_t index) const; 166 ParsedRtcEventLog::BweProbeResultEvent GetBweProbeResult(size_t index) const;
163 167
164 private: 168 private:
165 std::vector<rtclog::Event> events_; 169 std::vector<rtclog::Event> events_;
166 }; 170 };
167 171
168 } // namespace webrtc 172 } // namespace webrtc
169 173
170 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ 174 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/logging/rtc_event_log/rtc_event_log_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698