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 25 matching lines...) Expand all Loading... |
36 DEFINE_bool(plot_accumulated_delay_change, | 36 DEFINE_bool(plot_accumulated_delay_change, |
37 false, | 37 false, |
38 "Plot the accumulated 1-way path delay change, or the path delay " | 38 "Plot the accumulated 1-way path delay change, or the path delay " |
39 "change compared to the first packet."); | 39 "change compared to the first packet."); |
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, | |
47 false, | |
48 "Run the bandwidth estimator with the logged rtp and rtcp and plot " | |
49 "the output."); | |
50 | 46 |
51 int main(int argc, char* argv[]) { | 47 int main(int argc, char* argv[]) { |
52 std::string program_name = argv[0]; | 48 std::string program_name = argv[0]; |
53 std::string usage = | 49 std::string usage = |
54 "A tool for visualizing WebRTC event logs.\n" | 50 "A tool for visualizing WebRTC event logs.\n" |
55 "Example usage:\n" + | 51 "Example usage:\n" + |
56 program_name + " <logfile> | python\n" + "Run " + program_name + | 52 program_name + " <logfile> | python\n" + "Run " + program_name + |
57 " --help for a list of command line options\n"; | 53 " --help for a list of command line options\n"; |
58 google::SetUsageMessage(usage); | 54 google::SetUsageMessage(usage); |
59 google::ParseCommandLineFlags(&argc, &argv, true); | 55 google::ParseCommandLineFlags(&argc, &argv, true); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 webrtc::PacketDirection::kIncomingPacket, | 125 webrtc::PacketDirection::kIncomingPacket, |
130 collection->append_new_plot()); | 126 collection->append_new_plot()); |
131 } | 127 } |
132 if (FLAGS_outgoing) { | 128 if (FLAGS_outgoing) { |
133 analyzer.CreateStreamBitrateGraph( | 129 analyzer.CreateStreamBitrateGraph( |
134 webrtc::PacketDirection::kOutgoingPacket, | 130 webrtc::PacketDirection::kOutgoingPacket, |
135 collection->append_new_plot()); | 131 collection->append_new_plot()); |
136 } | 132 } |
137 } | 133 } |
138 | 134 |
139 if (FLAGS_plot_all || FLAGS_plot_bwe) { | |
140 analyzer.CreateBweGraph(collection->append_new_plot()); | |
141 } | |
142 | |
143 collection->draw(); | 135 collection->draw(); |
144 | 136 |
145 return 0; | 137 return 0; |
146 } | 138 } |
OLD | NEW |