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 29 matching lines...) Expand all Loading... |
40 DEFINE_bool(plot_total_bitrate, | 40 DEFINE_bool(plot_total_bitrate, |
41 false, | 41 false, |
42 "Plot the total bitrate used by all streams."); | 42 "Plot the total bitrate used by all streams."); |
43 DEFINE_bool(plot_stream_bitrate, | 43 DEFINE_bool(plot_stream_bitrate, |
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, |
| 51 false, |
| 52 "Compute network delay based on sent packets and the received " |
| 53 "transport feedback."); |
50 | 54 |
51 int main(int argc, char* argv[]) { | 55 int main(int argc, char* argv[]) { |
52 std::string program_name = argv[0]; | 56 std::string program_name = argv[0]; |
53 std::string usage = | 57 std::string usage = |
54 "A tool for visualizing WebRTC event logs.\n" | 58 "A tool for visualizing WebRTC event logs.\n" |
55 "Example usage:\n" + | 59 "Example usage:\n" + |
56 program_name + " <logfile> | python\n" + "Run " + program_name + | 60 program_name + " <logfile> | python\n" + "Run " + program_name + |
57 " --help for a list of command line options\n"; | 61 " --help for a list of command line options\n"; |
58 google::SetUsageMessage(usage); | 62 google::SetUsageMessage(usage); |
59 google::ParseCommandLineFlags(&argc, &argv, true); | 63 google::ParseCommandLineFlags(&argc, &argv, true); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 analyzer.CreateStreamBitrateGraph( | 137 analyzer.CreateStreamBitrateGraph( |
134 webrtc::PacketDirection::kOutgoingPacket, | 138 webrtc::PacketDirection::kOutgoingPacket, |
135 collection->AppendNewPlot()); | 139 collection->AppendNewPlot()); |
136 } | 140 } |
137 } | 141 } |
138 | 142 |
139 if (FLAGS_plot_all || FLAGS_plot_bwe) { | 143 if (FLAGS_plot_all || FLAGS_plot_bwe) { |
140 analyzer.CreateBweGraph(collection->AppendNewPlot()); | 144 analyzer.CreateBweGraph(collection->AppendNewPlot()); |
141 } | 145 } |
142 | 146 |
| 147 if (FLAGS_plot_all || FLAGS_plot_network_delay_feedback) { |
| 148 analyzer.CreateNetworkDelayFeebackGraph(collection->AppendNewPlot()); |
| 149 } |
| 150 |
143 collection->Draw(); | 151 collection->Draw(); |
144 | 152 |
145 return 0; | 153 return 0; |
146 } | 154 } |
OLD | NEW |