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..2f5ecd63e45f67bc4e12ac4910d5593393c57660 100644 |
--- a/webrtc/tools/event_log_visualizer/main.cc |
+++ b/webrtc/tools/event_log_visualizer/main.cc |
@@ -62,6 +62,21 @@ 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_fec, false, "Plot the audio encoder FEC."); |
+DEFINE_bool(audio_encoder_dtx, 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 +202,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_fec) { |
+ analyzer.CreateAudioEncoderEnableFecGraph(collection->AppendNewPlot()); |
+ } |
+ |
+ if (FLAGS_plot_all || FLAGS_audio_encoder_dtx) { |
+ analyzer.CreateAudioEncoderEnableDtxGraph(collection->AppendNewPlot()); |
+ } |
+ |
+ if (FLAGS_plot_all || FLAGS_audio_encoder_num_channels) { |
+ analyzer.CreateAudioEncoderNumChannelsGraph(collection->AppendNewPlot()); |
+ } |
+ |
collection->Draw(); |
return 0; |