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

Side by Side Diff: webrtc/tools/event_log_visualizer/generate_timeseries.cc

Issue 2204713005: Add fraction loss in visualization tool. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 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 | « webrtc/tools/event_log_visualizer/analyzer.cc ('k') | no next file » | 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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 }
OLDNEW
« no previous file with comments | « webrtc/tools/event_log_visualizer/analyzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698