Add ana config to event log visualiser

BUG=webrtc:7160

Review-Url: https://codereview.webrtc.org/2695613005
Cr-Commit-Position: refs/heads/master@{#16776}
This commit is contained in:
michaelt
2017-02-22 07:33:27 -08:00
committed by Commit bot
parent 0335e6c4bf
commit 6e5b2195d7
3 changed files with 166 additions and 0 deletions

View File

@ -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;