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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 false, | 44 false, |
45 "Plot the bitrate used by each stream."); | 45 "Plot the bitrate used by each stream."); |
46 DEFINE_bool(plot_bwe, | 46 DEFINE_bool(plot_bwe, |
47 false, | 47 false, |
48 "Run the bandwidth estimator with the logged rtp and rtcp and plot " | 48 "Run the bandwidth estimator with the logged rtp and rtcp and plot " |
49 "the output."); | 49 "the output."); |
50 DEFINE_bool(plot_network_delay_feedback, | 50 DEFINE_bool(plot_network_delay_feedback, |
51 false, | 51 false, |
52 "Compute network delay based on sent packets and the received " | 52 "Compute network delay based on sent packets and the received " |
53 "transport feedback."); | 53 "transport feedback."); |
| 54 DEFINE_bool(plot_fraction_loss, |
| 55 false, |
| 56 "Plot packet loss in percent for outgoing packets (as perceived by " |
| 57 "the send-side bandwidth estimator)."); |
54 | 58 |
55 int main(int argc, char* argv[]) { | 59 int main(int argc, char* argv[]) { |
56 std::string program_name = argv[0]; | 60 std::string program_name = argv[0]; |
57 std::string usage = | 61 std::string usage = |
58 "A tool for visualizing WebRTC event logs.\n" | 62 "A tool for visualizing WebRTC event logs.\n" |
59 "Example usage:\n" + | 63 "Example usage:\n" + |
60 program_name + " <logfile> | python\n" + "Run " + program_name + | 64 program_name + " <logfile> | python\n" + "Run " + program_name + |
61 " --help for a list of command line options\n"; | 65 " --help for a list of command line options\n"; |
62 google::SetUsageMessage(usage); | 66 google::SetUsageMessage(usage); |
63 google::ParseCommandLineFlags(&argc, &argv, true); | 67 google::ParseCommandLineFlags(&argc, &argv, true); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 analyzer.CreateDelayChangeGraph(collection->AppendNewPlot()); | 113 analyzer.CreateDelayChangeGraph(collection->AppendNewPlot()); |
110 } | 114 } |
111 } | 115 } |
112 | 116 |
113 if (FLAGS_plot_all || FLAGS_plot_accumulated_delay_change) { | 117 if (FLAGS_plot_all || FLAGS_plot_accumulated_delay_change) { |
114 if (FLAGS_incoming) { | 118 if (FLAGS_incoming) { |
115 analyzer.CreateAccumulatedDelayChangeGraph(collection->AppendNewPlot()); | 119 analyzer.CreateAccumulatedDelayChangeGraph(collection->AppendNewPlot()); |
116 } | 120 } |
117 } | 121 } |
118 | 122 |
| 123 if (FLAGS_plot_all || FLAGS_plot_fraction_loss) { |
| 124 analyzer.CreateFractionLossGraph(collection->AppendNewPlot()); |
| 125 } |
| 126 |
119 if (FLAGS_plot_all || FLAGS_plot_total_bitrate) { | 127 if (FLAGS_plot_all || FLAGS_plot_total_bitrate) { |
120 if (FLAGS_incoming) { | 128 if (FLAGS_incoming) { |
121 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kIncomingPacket, | 129 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kIncomingPacket, |
122 collection->AppendNewPlot()); | 130 collection->AppendNewPlot()); |
123 } | 131 } |
124 if (FLAGS_outgoing) { | 132 if (FLAGS_outgoing) { |
125 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kOutgoingPacket, | 133 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kOutgoingPacket, |
126 collection->AppendNewPlot()); | 134 collection->AppendNewPlot()); |
127 } | 135 } |
128 } | 136 } |
(...skipping 16 matching lines...) Expand all Loading... |
145 } | 153 } |
146 | 154 |
147 if (FLAGS_plot_all || FLAGS_plot_network_delay_feedback) { | 155 if (FLAGS_plot_all || FLAGS_plot_network_delay_feedback) { |
148 analyzer.CreateNetworkDelayFeebackGraph(collection->AppendNewPlot()); | 156 analyzer.CreateNetworkDelayFeebackGraph(collection->AppendNewPlot()); |
149 } | 157 } |
150 | 158 |
151 collection->Draw(); | 159 collection->Draw(); |
152 | 160 |
153 return 0; | 161 return 0; |
154 } | 162 } |
OLD | NEW |