From 1edfff99fa130b4aa62b43ad920569348b0602a8 Mon Sep 17 00:00:00 2001 From: Bjorn Terelius Date: Wed, 11 Oct 2017 13:15:19 +0200 Subject: [PATCH] Add profiles for analysing send-side and receive-side BWE in event log visualizer. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:7726 Change-Id: I2f6bb5a25fe8bb63d022f4097f9bc15827af3cf1 Reviewed-on: https://webrtc-review.googlesource.com/8360 Reviewed-by: Philip Eliasson Commit-Queue: Björn Terelius Cr-Commit-Position: refs/heads/master@{#20287} --- rtc_tools/event_log_visualizer/main.cc | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/rtc_tools/event_log_visualizer/main.cc b/rtc_tools/event_log_visualizer/main.cc index fc9f707d4c..aef040e33d 100644 --- a/rtc_tools/event_log_visualizer/main.cc +++ b/rtc_tools/event_log_visualizer/main.cc @@ -21,7 +21,8 @@ DEFINE_string(plot_profile, "default", "A profile that selects a certain subset of the plots. Currently " - "defined profiles are \"all\", \"none\" and \"default\""); + "defined profiles are \"all\", \"none\", \"sendside_bwe\"," + "\"receiveside_bwe\" and \"default\""); DEFINE_bool(plot_incoming_packet_sizes, false, @@ -108,6 +109,7 @@ DEFINE_bool(plot_audio_encoder_num_channels, DEFINE_bool(plot_audio_jitter_buffer, false, "Plot the audio jitter buffer delay profile."); + DEFINE_string( force_fieldtrials, "", @@ -143,6 +145,23 @@ int main(int argc, char* argv[]) { SetAllPlotFlags(true); } else if (strcmp(FLAG_plot_profile, "none") == 0) { SetAllPlotFlags(false); + } else if (strcmp(FLAG_plot_profile, "sendside_bwe") == 0) { + SetAllPlotFlags(false); + FLAG_plot_outgoing_packet_sizes = true; + FLAG_plot_outgoing_bitrate = true; + FLAG_plot_outgoing_stream_bitrate = true; + FLAG_plot_simulated_sendside_bwe = true; + FLAG_plot_network_delay_feedback = true; + FLAG_plot_fraction_loss_feedback = true; + } else if (strcmp(FLAG_plot_profile, "receiveside_bwe") == 0) { + SetAllPlotFlags(false); + FLAG_plot_incoming_packet_sizes = true; + FLAG_plot_incoming_delay_delta = true; + FLAG_plot_incoming_delay = true; + FLAG_plot_incoming_loss_rate = true; + FLAG_plot_incoming_bitrate = true; + FLAG_plot_incoming_stream_bitrate = true; + FLAG_plot_simulated_receiveside_bwe = true; } else if (strcmp(FLAG_plot_profile, "default") == 0) { // Do nothing. } else {