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

Side by Side Diff: webrtc/rtc_tools/event_log_visualizer/main.cc

Issue 2826313004: Added -show_detector_state which show the detector state in the total bitrate graph. (Closed)
Patch Set: Intervals now show up in the legend. Created 3 years, 5 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 "Plot the audio jitter buffer delay profile."); 83 "Plot the audio jitter buffer delay profile.");
84 DEFINE_string( 84 DEFINE_string(
85 force_fieldtrials, 85 force_fieldtrials,
86 "", 86 "",
87 "Field trials control experimental feature code which can be forced. " 87 "Field trials control experimental feature code which can be forced. "
88 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/" 88 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/"
89 " will assign the group Enabled to field trial WebRTC-FooFeature. Multiple " 89 " will assign the group Enabled to field trial WebRTC-FooFeature. Multiple "
90 "trials are separated by \"/\""); 90 "trials are separated by \"/\"");
91 DEFINE_bool(help, false, "prints this message"); 91 DEFINE_bool(help, false, "prints this message");
92 92
93 DEFINE_bool(
94 show_detector_state,
95 false,
96 "Mark the delay based bwe detector state on the total bitrate graph");
97
93 int main(int argc, char* argv[]) { 98 int main(int argc, char* argv[]) {
94 std::string program_name = argv[0]; 99 std::string program_name = argv[0];
95 std::string usage = 100 std::string usage =
96 "A tool for visualizing WebRTC event logs.\n" 101 "A tool for visualizing WebRTC event logs.\n"
97 "Example usage:\n" + 102 "Example usage:\n" +
98 program_name + " <logfile> | python\n" + "Run " + program_name + 103 program_name + " <logfile> | python\n" + "Run " + program_name +
99 " --help for a list of command line options\n"; 104 " --help for a list of command line options\n";
100 rtc::FlagList::SetFlagsFromCommandLine(&argc, argv, true); 105 rtc::FlagList::SetFlagsFromCommandLine(&argc, argv, true);
101 if (FLAG_help) { 106 if (FLAG_help) {
102 rtc::FlagList::Print(nullptr, false); 107 rtc::FlagList::Print(nullptr, false);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 176 }
172 177
173 if (FLAG_plot_all || FLAG_plot_fraction_loss) { 178 if (FLAG_plot_all || FLAG_plot_fraction_loss) {
174 analyzer.CreateFractionLossGraph(collection->AppendNewPlot()); 179 analyzer.CreateFractionLossGraph(collection->AppendNewPlot());
175 analyzer.CreateIncomingPacketLossGraph(collection->AppendNewPlot()); 180 analyzer.CreateIncomingPacketLossGraph(collection->AppendNewPlot());
176 } 181 }
177 182
178 if (FLAG_plot_all || FLAG_plot_total_bitrate) { 183 if (FLAG_plot_all || FLAG_plot_total_bitrate) {
179 if (FLAG_incoming) { 184 if (FLAG_incoming) {
180 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kIncomingPacket, 185 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kIncomingPacket,
181 collection->AppendNewPlot()); 186 collection->AppendNewPlot(),
187 FLAG_show_detector_state);
182 } 188 }
183 if (FLAG_outgoing) { 189 if (FLAG_outgoing) {
184 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kOutgoingPacket, 190 analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kOutgoingPacket,
185 collection->AppendNewPlot()); 191 collection->AppendNewPlot(),
192 FLAG_show_detector_state);
186 } 193 }
187 } 194 }
188 195
189 if (FLAG_plot_all || FLAG_plot_stream_bitrate) { 196 if (FLAG_plot_all || FLAG_plot_stream_bitrate) {
190 if (FLAG_incoming) { 197 if (FLAG_incoming) {
191 analyzer.CreateStreamBitrateGraph( 198 analyzer.CreateStreamBitrateGraph(
192 webrtc::PacketDirection::kIncomingPacket, 199 webrtc::PacketDirection::kIncomingPacket,
193 collection->AppendNewPlot()); 200 collection->AppendNewPlot());
194 } 201 }
195 if (FLAG_outgoing) { 202 if (FLAG_outgoing) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 webrtc::test::ResourcePath( 248 webrtc::test::ResourcePath(
242 "audio_processing/conversational_speech/EN_script2_F_sp2_B1", 249 "audio_processing/conversational_speech/EN_script2_F_sp2_B1",
243 "wav"), 250 "wav"),
244 48000, collection->AppendNewPlot()); 251 48000, collection->AppendNewPlot());
245 } 252 }
246 253
247 collection->Draw(); 254 collection->Draw();
248 255
249 return 0; 256 return 0;
250 } 257 }
OLDNEW
« no previous file with comments | « webrtc/rtc_tools/event_log_visualizer/analyzer.cc ('k') | webrtc/rtc_tools/event_log_visualizer/plot_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698