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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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_enable_fec, | |
minyue-webrtc
2017/02/15 09:00:22
sorry for not saying it, but "enable" here can be
michaelt
2017/02/15 10:30:59
Done.
| |
76 false, | |
77 "Plot the audio encoder FEC."); | |
78 DEFINE_bool(audio_encoder_enable_dtx, | |
minyue-webrtc
2017/02/15 09:00:22
and here
michaelt
2017/02/15 10:30:59
Done.
| |
79 false, | |
80 "Plot the audio encoder DTX."); | |
81 DEFINE_bool(audio_encoder_num_channels, | |
82 false, | |
83 "Plot the audio encoder number of channels."); | |
65 DEFINE_string( | 84 DEFINE_string( |
66 force_fieldtrials, | 85 force_fieldtrials, |
67 "", | 86 "", |
68 "Field trials control experimental feature code which can be forced. " | 87 "Field trials control experimental feature code which can be forced. " |
69 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/" | 88 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/" |
70 " will assign the group Enabled to field trial WebRTC-FooFeature. Multiple " | 89 " will assign the group Enabled to field trial WebRTC-FooFeature. Multiple " |
71 "trials are separated by \"/\""); | 90 "trials are separated by \"/\""); |
72 | 91 |
73 int main(int argc, char* argv[]) { | 92 int main(int argc, char* argv[]) { |
74 std::string program_name = argv[0]; | 93 std::string program_name = argv[0]; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 } | 199 } |
181 | 200 |
182 if (FLAGS_plot_all || FLAGS_plot_network_delay_feedback) { | 201 if (FLAGS_plot_all || FLAGS_plot_network_delay_feedback) { |
183 analyzer.CreateNetworkDelayFeedbackGraph(collection->AppendNewPlot()); | 202 analyzer.CreateNetworkDelayFeedbackGraph(collection->AppendNewPlot()); |
184 } | 203 } |
185 | 204 |
186 if (FLAGS_plot_all || FLAGS_plot_timestamps) { | 205 if (FLAGS_plot_all || FLAGS_plot_timestamps) { |
187 analyzer.CreateTimestampGraph(collection->AppendNewPlot()); | 206 analyzer.CreateTimestampGraph(collection->AppendNewPlot()); |
188 } | 207 } |
189 | 208 |
209 if (FLAGS_plot_all || FLAGS_audio_encoder_bitrate_bps) { | |
210 analyzer.CreateAudioEncoderTargetBitrateGraph(collection->AppendNewPlot()); | |
211 } | |
212 | |
213 if (FLAGS_plot_all || FLAGS_audio_encoder_frame_length_ms) { | |
214 analyzer.CreateAudioEncoderFrameLengthGraph(collection->AppendNewPlot()); | |
215 } | |
216 | |
217 if (FLAGS_plot_all || FLAGS_audio_encoder_uplink_packet_loss_fraction) { | |
218 analyzer.CreateAudioEncoderUplinkPacketLossFractionGraph( | |
219 collection->AppendNewPlot()); | |
220 } | |
221 | |
222 if (FLAGS_plot_all || FLAGS_audio_encoder_enable_fec) { | |
223 analyzer.CreateAudioEncoderEnableFecGraph(collection->AppendNewPlot()); | |
224 } | |
225 | |
226 if (FLAGS_plot_all || FLAGS_audio_encoder_enable_dtx) { | |
227 analyzer.CreateAudioEncoderEnableDtxGraph(collection->AppendNewPlot()); | |
228 } | |
229 | |
230 if (FLAGS_plot_all || FLAGS_audio_encoder_num_channels) { | |
231 analyzer.CreateAudioEncoderNumChannelsGraph(collection->AppendNewPlot()); | |
232 } | |
233 | |
190 collection->Draw(); | 234 collection->Draw(); |
191 | 235 |
192 return 0; | 236 return 0; |
193 } | 237 } |
OLD | NEW |