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

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

Issue 2193763002: Reland: Add BWE plot to event log analyzer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix lib fuzzer. 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
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 25 matching lines...) Expand all
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.");
46 50
47 int main(int argc, char* argv[]) { 51 int main(int argc, char* argv[]) {
48 std::string program_name = argv[0]; 52 std::string program_name = argv[0];
49 std::string usage = 53 std::string usage =
50 "A tool for visualizing WebRTC event logs.\n" 54 "A tool for visualizing WebRTC event logs.\n"
51 "Example usage:\n" + 55 "Example usage:\n" +
52 program_name + " <logfile> | python\n" + "Run " + program_name + 56 program_name + " <logfile> | python\n" + "Run " + program_name +
53 " --help for a list of command line options\n"; 57 " --help for a list of command line options\n";
54 google::SetUsageMessage(usage); 58 google::SetUsageMessage(usage);
55 google::ParseCommandLineFlags(&argc, &argv, true); 59 google::ParseCommandLineFlags(&argc, &argv, true);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 webrtc::PacketDirection::kIncomingPacket, 129 webrtc::PacketDirection::kIncomingPacket,
126 collection->append_new_plot()); 130 collection->append_new_plot());
127 } 131 }
128 if (FLAGS_outgoing) { 132 if (FLAGS_outgoing) {
129 analyzer.CreateStreamBitrateGraph( 133 analyzer.CreateStreamBitrateGraph(
130 webrtc::PacketDirection::kOutgoingPacket, 134 webrtc::PacketDirection::kOutgoingPacket,
131 collection->append_new_plot()); 135 collection->append_new_plot());
132 } 136 }
133 } 137 }
134 138
139 if (FLAGS_plot_all || FLAGS_plot_bwe) {
140 analyzer.CreateBweGraph(collection->append_new_plot());
141 }
142
135 collection->draw(); 143 collection->draw();
136 144
137 return 0; 145 return 0;
138 } 146 }
OLDNEW
« no previous file with comments | « webrtc/tools/event_log_visualizer/analyzer.cc ('k') | webrtc/tools/event_log_visualizer/plot_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698