OLD | NEW |
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 |
11 #ifndef WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ | 11 #ifndef WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ |
12 #define WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ | 12 #define WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <memory> | 15 #include <memory> |
16 #include <set> | 16 #include <set> |
17 #include <string> | 17 #include <string> |
18 #include <utility> | 18 #include <utility> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "webrtc/base/function_view.h" | 21 #include "webrtc/base/function_view.h" |
22 #include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h" | 22 #include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h" |
| 23 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ
k_adaptor.h" |
23 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 24 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
24 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h" | 25 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h" |
25 #include "webrtc/tools/event_log_visualizer/plot_base.h" | 26 #include "webrtc/tools/event_log_visualizer/plot_base.h" |
26 | 27 |
27 namespace webrtc { | 28 namespace webrtc { |
28 namespace plotting { | 29 namespace plotting { |
29 | 30 |
30 struct LoggedRtpPacket { | 31 struct LoggedRtpPacket { |
31 LoggedRtpPacket(uint64_t timestamp, RTPHeader header, size_t total_length) | 32 LoggedRtpPacket(uint64_t timestamp, RTPHeader header, size_t total_length) |
32 : timestamp(timestamp), header(header), total_length(total_length) {} | 33 : timestamp(timestamp), header(header), total_length(total_length) {} |
(...skipping 15 matching lines...) Expand all Loading... |
48 | 49 |
49 struct LossBasedBweUpdate { | 50 struct LossBasedBweUpdate { |
50 uint64_t timestamp; | 51 uint64_t timestamp; |
51 int32_t new_bitrate; | 52 int32_t new_bitrate; |
52 uint8_t fraction_loss; | 53 uint8_t fraction_loss; |
53 int32_t expected_packets; | 54 int32_t expected_packets; |
54 }; | 55 }; |
55 | 56 |
56 struct AudioNetworkAdaptationEvent { | 57 struct AudioNetworkAdaptationEvent { |
57 uint64_t timestamp; | 58 uint64_t timestamp; |
58 AudioNetworkAdaptor::EncoderRuntimeConfig config; | 59 AudioEncoderRuntimeConfig config; |
59 }; | 60 }; |
60 | 61 |
61 class EventLogAnalyzer { | 62 class EventLogAnalyzer { |
62 public: | 63 public: |
63 // The EventLogAnalyzer keeps a reference to the ParsedRtcEventLog for the | 64 // The EventLogAnalyzer keeps a reference to the ParsedRtcEventLog for the |
64 // duration of its lifetime. The ParsedRtcEventLog must not be destroyed or | 65 // duration of its lifetime. The ParsedRtcEventLog must not be destroyed or |
65 // modified while the EventLogAnalyzer is being used. | 66 // modified while the EventLogAnalyzer is being used. |
66 explicit EventLogAnalyzer(const ParsedRtcEventLog& log); | 67 explicit EventLogAnalyzer(const ParsedRtcEventLog& log); |
67 | 68 |
68 void CreatePacketGraph(PacketDirection desired_direction, Plot* plot); | 69 void CreatePacketGraph(PacketDirection desired_direction, Plot* plot); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 uint64_t end_time_; | 180 uint64_t end_time_; |
180 | 181 |
181 // Duration (in seconds) of log file. | 182 // Duration (in seconds) of log file. |
182 float call_duration_s_; | 183 float call_duration_s_; |
183 }; | 184 }; |
184 | 185 |
185 } // namespace plotting | 186 } // namespace plotting |
186 } // namespace webrtc | 187 } // namespace webrtc |
187 | 188 |
188 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ | 189 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ |
OLD | NEW |