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

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

Issue 2695613005: Add ana config to event log visualiser (Closed)
Patch Set: Replaced std::function with FunctionView Created 3 years, 10 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 false, 55 false,
56 "Compute network delay based on sent packets and the received " 56 "Compute network delay based on sent packets and the received "
57 "transport feedback."); 57 "transport feedback.");
58 DEFINE_bool(plot_fraction_loss, 58 DEFINE_bool(plot_fraction_loss,
59 false, 59 false,
60 "Plot packet loss in percent for outgoing packets (as perceived by " 60 "Plot packet loss in percent for outgoing packets (as perceived by "
61 "the send-side bandwidth estimator)."); 61 "the send-side bandwidth estimator).");
62 DEFINE_bool(plot_timestamps, 62 DEFINE_bool(plot_timestamps,
63 false, 63 false,
64 "Plot the rtp timestamps of all rtp and rtcp packets over time."); 64 "Plot the rtp timestamps of all rtp and rtcp packets over time.");
65 DEFINE_bool(audio_encoder_bitrate_bps,
66 false,
67 "Plot the audio encoder target bitrate.");
68 DEFINE_bool(audio_encoder_frame_length_ms,
69 false,
70 "Plot the audio encoder frame length.");
71 DEFINE_bool(
72 audio_encoder_uplink_packet_loss_fraction,
73 false,
74 "Plot the uplink packet loss fraction which is send to the audio encoder.");
75 DEFINE_bool(audio_encoder_fec, false, "Plot the audio encoder FEC.");
76 DEFINE_bool(audio_encoder_dtx, false, "Plot the audio encoder DTX.");
77 DEFINE_bool(audio_encoder_num_channels,
78 false,
79 "Plot the audio encoder number of channels.");
65 DEFINE_string( 80 DEFINE_string(
66 force_fieldtrials, 81 force_fieldtrials,
67 "", 82 "",
68 "Field trials control experimental feature code which can be forced. " 83 "Field trials control experimental feature code which can be forced. "
69 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/" 84 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/"
70 " will assign the group Enabled to field trial WebRTC-FooFeature. Multiple " 85 " will assign the group Enabled to field trial WebRTC-FooFeature. Multiple "
71 "trials are separated by \"/\""); 86 "trials are separated by \"/\"");
72 87
73 int main(int argc, char* argv[]) { 88 int main(int argc, char* argv[]) {
74 std::string program_name = argv[0]; 89 std::string program_name = argv[0];
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 } 195 }
181 196
182 if (FLAGS_plot_all || FLAGS_plot_network_delay_feedback) { 197 if (FLAGS_plot_all || FLAGS_plot_network_delay_feedback) {
183 analyzer.CreateNetworkDelayFeedbackGraph(collection->AppendNewPlot()); 198 analyzer.CreateNetworkDelayFeedbackGraph(collection->AppendNewPlot());
184 } 199 }
185 200
186 if (FLAGS_plot_all || FLAGS_plot_timestamps) { 201 if (FLAGS_plot_all || FLAGS_plot_timestamps) {
187 analyzer.CreateTimestampGraph(collection->AppendNewPlot()); 202 analyzer.CreateTimestampGraph(collection->AppendNewPlot());
188 } 203 }
189 204
205 if (FLAGS_plot_all || FLAGS_audio_encoder_bitrate_bps) {
206 analyzer.CreateAudioEncoderTargetBitrateGraph(collection->AppendNewPlot());
207 }
208
209 if (FLAGS_plot_all || FLAGS_audio_encoder_frame_length_ms) {
210 analyzer.CreateAudioEncoderFrameLengthGraph(collection->AppendNewPlot());
211 }
212
213 if (FLAGS_plot_all || FLAGS_audio_encoder_uplink_packet_loss_fraction) {
214 analyzer.CreateAudioEncoderUplinkPacketLossFractionGraph(
215 collection->AppendNewPlot());
216 }
217
218 if (FLAGS_plot_all || FLAGS_audio_encoder_fec) {
219 analyzer.CreateAudioEncoderEnableFecGraph(collection->AppendNewPlot());
220 }
221
222 if (FLAGS_plot_all || FLAGS_audio_encoder_dtx) {
223 analyzer.CreateAudioEncoderEnableDtxGraph(collection->AppendNewPlot());
224 }
225
226 if (FLAGS_plot_all || FLAGS_audio_encoder_num_channels) {
227 analyzer.CreateAudioEncoderNumChannelsGraph(collection->AppendNewPlot());
228 }
229
190 collection->Draw(); 230 collection->Draw();
191 231
192 return 0; 232 return 0;
193 } 233 }
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