Index: webrtc/tools/event_log_visualizer/main.cc |
diff --git a/webrtc/tools/event_log_visualizer/main.cc b/webrtc/tools/event_log_visualizer/main.cc |
index 13a5b8a4f9353bc7bf30bd3b6f5425db800fefbc..ec091a7ea75665079c66dfa1bb1c199c95535e14 100644 |
--- a/webrtc/tools/event_log_visualizer/main.cc |
+++ b/webrtc/tools/event_log_visualizer/main.cc |
@@ -62,6 +62,25 @@ DEFINE_bool(plot_fraction_loss, |
DEFINE_bool(plot_timestamps, |
false, |
"Plot the rtp timestamps of all rtp and rtcp packets over time."); |
+DEFINE_bool(audio_encoder_bitrate_bps, |
+ false, |
+ "Plot the audio encoder target bitrate."); |
+DEFINE_bool(audio_encoder_frame_length_ms, |
+ false, |
+ "Plot the audio encoder frame length."); |
+DEFINE_bool( |
+ audio_encoder_uplink_packet_loss_fraction, |
+ false, |
+ "Plot the uplink packet loss fraction which is send to the audio encoder."); |
+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.
|
+ false, |
+ "Plot the audio encoder FEC."); |
+DEFINE_bool(audio_encoder_enable_dtx, |
minyue-webrtc
2017/02/15 09:00:22
and here
michaelt
2017/02/15 10:30:59
Done.
|
+ false, |
+ "Plot the audio encoder DTX."); |
+DEFINE_bool(audio_encoder_num_channels, |
+ false, |
+ "Plot the audio encoder number of channels."); |
DEFINE_string( |
force_fieldtrials, |
"", |
@@ -187,6 +206,31 @@ int main(int argc, char* argv[]) { |
analyzer.CreateTimestampGraph(collection->AppendNewPlot()); |
} |
+ if (FLAGS_plot_all || FLAGS_audio_encoder_bitrate_bps) { |
+ analyzer.CreateAudioEncoderTargetBitrateGraph(collection->AppendNewPlot()); |
+ } |
+ |
+ if (FLAGS_plot_all || FLAGS_audio_encoder_frame_length_ms) { |
+ analyzer.CreateAudioEncoderFrameLengthGraph(collection->AppendNewPlot()); |
+ } |
+ |
+ if (FLAGS_plot_all || FLAGS_audio_encoder_uplink_packet_loss_fraction) { |
+ analyzer.CreateAudioEncoderUplinkPacketLossFractionGraph( |
+ collection->AppendNewPlot()); |
+ } |
+ |
+ if (FLAGS_plot_all || FLAGS_audio_encoder_enable_fec) { |
+ analyzer.CreateAudioEncoderEnableFecGraph(collection->AppendNewPlot()); |
+ } |
+ |
+ if (FLAGS_plot_all || FLAGS_audio_encoder_enable_dtx) { |
+ analyzer.CreateAudioEncoderEnableDtxGraph(collection->AppendNewPlot()); |
+ } |
+ |
+ if (FLAGS_plot_all || FLAGS_audio_encoder_num_channels) { |
+ analyzer.CreateAudioEncoderNumChannelsGraph(collection->AppendNewPlot()); |
+ } |
+ |
collection->Draw(); |
return 0; |