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

Side by Side Diff: webrtc/tools/event_log_visualizer/analyzer.h

Issue 2317113003: Add a chart for packet loss on incoming streams. (Closed)
Patch Set: Comments addressed. Created 4 years, 3 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/tools/event_log_visualizer/analyzer.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 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 70
71 void CreateIncomingPacketLossGraph(Plot* plot);
72
71 void CreateDelayChangeGraph(Plot* plot); 73 void CreateDelayChangeGraph(Plot* plot);
72 74
73 void CreateAccumulatedDelayChangeGraph(Plot* plot); 75 void CreateAccumulatedDelayChangeGraph(Plot* plot);
74 76
75 void CreateFractionLossGraph(Plot* plot); 77 void CreateFractionLossGraph(Plot* plot);
76 78
77 void CreateTotalBitrateGraph(PacketDirection desired_direction, Plot* plot); 79 void CreateTotalBitrateGraph(PacketDirection desired_direction, Plot* plot);
78 80
79 void CreateStreamBitrateGraph(PacketDirection desired_direction, Plot* plot); 81 void CreateStreamBitrateGraph(PacketDirection desired_direction, Plot* plot);
80 82
(...skipping 22 matching lines...) Expand all
103 webrtc::PacketDirection direction_; 105 webrtc::PacketDirection direction_;
104 }; 106 };
105 107
106 template <typename T> 108 template <typename T>
107 void CreateAccumulatedPacketsTimeSeries( 109 void CreateAccumulatedPacketsTimeSeries(
108 PacketDirection desired_direction, 110 PacketDirection desired_direction,
109 Plot* plot, 111 Plot* plot,
110 const std::map<StreamId, std::vector<T>>& packets, 112 const std::map<StreamId, std::vector<T>>& packets,
111 const std::string& label_prefix); 113 const std::string& label_prefix);
112 114
113 bool IsRtxSsrc(StreamId stream_id); 115 bool IsRtxSsrc(StreamId stream_id) const;
114 116
115 bool IsVideoSsrc(StreamId stream_id); 117 bool IsVideoSsrc(StreamId stream_id) const;
116 118
117 bool IsAudioSsrc(StreamId stream_id); 119 bool IsAudioSsrc(StreamId stream_id) const;
120
121 std::string GetStreamName(StreamId) const;
118 122
119 const ParsedRtcEventLog& parsed_log_; 123 const ParsedRtcEventLog& parsed_log_;
120 124
121 // A list of SSRCs we are interested in analysing. 125 // A list of SSRCs we are interested in analysing.
122 // If left empty, all SSRCs will be considered relevant. 126 // If left empty, all SSRCs will be considered relevant.
123 std::vector<uint32_t> desired_ssrc_; 127 std::vector<uint32_t> desired_ssrc_;
124 128
125 // Tracks what each stream is configured for. Note that a single SSRC can be 129 // 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 130 // 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 131 // will appear in both video_ssrcs_ and rtx_ssrcs_. In the unlikely case that
(...skipping 25 matching lines...) Expand all
153 uint64_t end_time_; 157 uint64_t end_time_;
154 158
155 // Duration (in seconds) of log file. 159 // Duration (in seconds) of log file.
156 float call_duration_s_; 160 float call_duration_s_;
157 }; 161 };
158 162
159 } // namespace plotting 163 } // namespace plotting
160 } // namespace webrtc 164 } // namespace webrtc
161 165
162 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_ 166 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_ANALYZER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/tools/event_log_visualizer/analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698