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

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

Issue 2782553005: Visualize events related to probing in the total bitrate graph. (Closed)
Patch Set: GRAPH --> CHART 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 17 matching lines...) Expand all
28 RTC_POP_IGNORING_WUNDEF() 28 RTC_POP_IGNORING_WUNDEF()
29 29
30 namespace webrtc { 30 namespace webrtc {
31 31
32 enum class MediaType; 32 enum class MediaType;
33 33
34 class ParsedRtcEventLog { 34 class ParsedRtcEventLog {
35 friend class RtcEventLogTestHelper; 35 friend class RtcEventLogTestHelper;
36 36
37 public: 37 public:
38 struct BweProbeClusterCreatedEvent {
39 uint64_t timestamp;
40 uint32_t id;
41 uint64_t bitrate_bps;
42 uint32_t min_packets;
43 uint32_t min_bytes;
44 };
45
46 struct BweProbeResultEvent {
47 uint64_t timestamp;
48 uint32_t id;
49 rtc::Optional<uint64_t> bitrate_bps;
50 rtc::Optional<ProbeFailureReason> failure_reason;
51 };
52
38 enum EventType { 53 enum EventType {
39 UNKNOWN_EVENT = 0, 54 UNKNOWN_EVENT = 0,
40 LOG_START = 1, 55 LOG_START = 1,
41 LOG_END = 2, 56 LOG_END = 2,
42 RTP_EVENT = 3, 57 RTP_EVENT = 3,
43 RTCP_EVENT = 4, 58 RTCP_EVENT = 4,
44 AUDIO_PLAYOUT_EVENT = 5, 59 AUDIO_PLAYOUT_EVENT = 5,
45 LOSS_BASED_BWE_UPDATE = 6, 60 LOSS_BASED_BWE_UPDATE = 6,
46 DELAY_BASED_BWE_UPDATE = 7, 61 DELAY_BASED_BWE_UPDATE = 7,
47 VIDEO_RECEIVER_CONFIG_EVENT = 8, 62 VIDEO_RECEIVER_CONFIG_EVENT = 8,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 int32_t* bitrate_bps, 150 int32_t* bitrate_bps,
136 BandwidthUsage* detector_state) const; 151 BandwidthUsage* detector_state) const;
137 152
138 // Reads a audio network adaptation event to a (non-NULL) 153 // Reads a audio network adaptation event to a (non-NULL)
139 // AudioNetworkAdaptor::EncoderRuntimeConfig struct. Only the fields that are 154 // AudioNetworkAdaptor::EncoderRuntimeConfig struct. Only the fields that are
140 // stored in the protobuf will be written. 155 // stored in the protobuf will be written.
141 void GetAudioNetworkAdaptation( 156 void GetAudioNetworkAdaptation(
142 size_t index, 157 size_t index,
143 AudioNetworkAdaptor::EncoderRuntimeConfig* config) const; 158 AudioNetworkAdaptor::EncoderRuntimeConfig* config) const;
144 159
160 ParsedRtcEventLog::BweProbeClusterCreatedEvent GetBweProbeClusterCreated(
161 size_t index) const;
162
163 ParsedRtcEventLog::BweProbeResultEvent GetBweProbeResult(size_t index) const;
164
145 private: 165 private:
146 std::vector<rtclog::Event> events_; 166 std::vector<rtclog::Event> events_;
147 }; 167 };
148 168
149 } // namespace webrtc 169 } // namespace webrtc
150 170
151 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_PARSER_H_ 171 #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