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 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 explicit EventLogAnalyzer(const ParsedRtcEventLog& log); | 60 explicit EventLogAnalyzer(const ParsedRtcEventLog& log); |
61 | 61 |
62 void CreatePacketGraph(PacketDirection desired_direction, Plot* plot); | 62 void CreatePacketGraph(PacketDirection desired_direction, Plot* plot); |
63 | 63 |
64 void CreateAccumulatedPacketsGraph(PacketDirection desired_direction, | 64 void CreateAccumulatedPacketsGraph(PacketDirection desired_direction, |
65 Plot* plot); | 65 Plot* plot); |
66 | 66 |
67 void CreatePlayoutGraph(Plot* plot); | 67 void CreatePlayoutGraph(Plot* plot); |
68 | 68 |
69 void CreateSequenceNumberGraph(Plot* plot); | 69 void CreateSequenceNumberGraph(Plot* plot); |
70 void CreateIncomingPacketLossGraph(Plot* plot); | |
philipel
2016/09/08 13:05:53
newline between 69-70
stefan-webrtc
2016/09/09 07:12:25
Done.
| |
70 | 71 |
71 void CreateDelayChangeGraph(Plot* plot); | 72 void CreateDelayChangeGraph(Plot* plot); |
72 | 73 |
73 void CreateAccumulatedDelayChangeGraph(Plot* plot); | 74 void CreateAccumulatedDelayChangeGraph(Plot* plot); |
74 | 75 |
75 void CreateFractionLossGraph(Plot* plot); | 76 void CreateFractionLossGraph(Plot* plot); |
76 | 77 |
77 void CreateTotalBitrateGraph(PacketDirection desired_direction, Plot* plot); | 78 void CreateTotalBitrateGraph(PacketDirection desired_direction, Plot* plot); |
78 | 79 |
79 void CreateStreamBitrateGraph(PacketDirection desired_direction, Plot* plot); | 80 void CreateStreamBitrateGraph(PacketDirection desired_direction, Plot* plot); |
(...skipping 23 matching lines...) Expand all Loading... | |
103 webrtc::PacketDirection direction_; | 104 webrtc::PacketDirection direction_; |
104 }; | 105 }; |
105 | 106 |
106 template <typename T> | 107 template <typename T> |
107 void CreateAccumulatedPacketsTimeSeries( | 108 void CreateAccumulatedPacketsTimeSeries( |
108 PacketDirection desired_direction, | 109 PacketDirection desired_direction, |
109 Plot* plot, | 110 Plot* plot, |
110 const std::map<StreamId, std::vector<T>>& packets, | 111 const std::map<StreamId, std::vector<T>>& packets, |
111 const std::string& label_prefix); | 112 const std::string& label_prefix); |
112 | 113 |
113 bool IsRtxSsrc(StreamId stream_id); | 114 bool IsRtxSsrc(StreamId stream_id) const; |
114 | 115 |
115 bool IsVideoSsrc(StreamId stream_id); | 116 bool IsVideoSsrc(StreamId stream_id) const; |
116 | 117 |
117 bool IsAudioSsrc(StreamId stream_id); | 118 bool IsAudioSsrc(StreamId stream_id) const; |
119 | |
120 std::string GetStreamName(StreamId) const; | |
118 | 121 |
119 const ParsedRtcEventLog& parsed_log_; | 122 const ParsedRtcEventLog& parsed_log_; |
120 | 123 |
121 // A list of SSRCs we are interested in analysing. | 124 // A list of SSRCs we are interested in analysing. |
122 // If left empty, all SSRCs will be considered relevant. | 125 // If left empty, all SSRCs will be considered relevant. |
123 std::vector<uint32_t> desired_ssrc_; | 126 std::vector<uint32_t> desired_ssrc_; |
124 | 127 |
125 // Tracks what each stream is configured for. Note that a single SSRC can be | 128 // Tracks what each stream is configured for. Note that a single SSRC can be |
126 // in several sets. For example, the SSRC used for sending video over RTX | 129 // in several sets. For example, the SSRC used for sending video over RTX |
127 // will appear in both video_ssrcs_ and rtx_ssrcs_. In the unlikely case that | 130 // will appear in both video_ssrcs_ and rtx_ssrcs_. In the unlikely case that |
(...skipping 25 matching lines...) Expand all Loading... | |
153 uint64_t end_time_; | 156 uint64_t end_time_; |
154 | 157 |
155 // Duration (in seconds) of log file. | 158 // Duration (in seconds) of log file. |
156 float call_duration_s_; | 159 float call_duration_s_; |
157 }; | 160 }; |
158 | 161 |
159 } // namespace plotting | 162 } // namespace plotting |
160 } // namespace webrtc | 163 } // namespace webrtc |
161 | 164 |
162 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ | 165 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ |
OLD | NEW |