terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 11 | #include <stdio.h> |
| 12 | #include <string.h> |
Jonas Olsson | 5b2eda4 | 2019-06-11 14:29:40 +0200 | [diff] [blame^] | 13 | |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 14 | #include <iostream> |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 15 | #include <map> |
| 16 | #include <memory> |
| 17 | #include <string> |
| 18 | #include <utility> |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 19 | |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 20 | #include "logging/rtc_event_log/rtc_event_log.h" |
Sebastian Jansson | b290a6d | 2019-01-03 14:46:23 +0100 | [diff] [blame] | 21 | #include "logging/rtc_event_log/rtc_event_log_parser.h" |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 22 | #include "modules/audio_coding/neteq/include/neteq.h" |
| 23 | #include "modules/rtp_rtcp/source/rtcp_packet/report_block.h" |
| 24 | #include "rtc_base/checks.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 25 | #include "rtc_base/flags.h" |
| 26 | #include "rtc_tools/event_log_visualizer/analyzer.h" |
| 27 | #include "rtc_tools/event_log_visualizer/plot_base.h" |
Bjorn Terelius | ef73f59 | 2018-09-10 20:11:49 +0200 | [diff] [blame] | 28 | #include "rtc_tools/event_log_visualizer/plot_protobuf.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 29 | #include "rtc_tools/event_log_visualizer/plot_python.h" |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 30 | #include "system_wrappers/include/field_trial.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 31 | #include "test/field_trial.h" |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 32 | #include "test/testsupport/file_utils.h" |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 33 | |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 34 | WEBRTC_DEFINE_string( |
| 35 | plot_profile, |
| 36 | "default", |
| 37 | "A profile that selects a certain subset of the plots. Currently " |
| 38 | "defined profiles are \"all\", \"none\", \"sendside_bwe\"," |
| 39 | "\"receiveside_bwe\" and \"default\""); |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 40 | |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 41 | WEBRTC_DEFINE_bool(plot_incoming_packet_sizes, |
| 42 | false, |
| 43 | "Plot bar graph showing the size of each incoming packet."); |
| 44 | WEBRTC_DEFINE_bool(plot_outgoing_packet_sizes, |
| 45 | false, |
| 46 | "Plot bar graph showing the size of each outgoing packet."); |
Bjorn Terelius | 7c974e6 | 2019-02-15 17:20:12 +0100 | [diff] [blame] | 47 | WEBRTC_DEFINE_bool(plot_incoming_rtcp_types, |
| 48 | false, |
| 49 | "Plot the RTCP block types for incoming RTCP packets."); |
| 50 | WEBRTC_DEFINE_bool(plot_outgoing_rtcp_types, |
| 51 | false, |
| 52 | "Plot the RTCP block types for outgoing RTCP packets."); |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 53 | WEBRTC_DEFINE_bool( |
| 54 | plot_incoming_packet_count, |
| 55 | false, |
| 56 | "Plot the accumulated number of packets for each incoming stream."); |
| 57 | WEBRTC_DEFINE_bool( |
| 58 | plot_outgoing_packet_count, |
| 59 | false, |
| 60 | "Plot the accumulated number of packets for each outgoing stream."); |
| 61 | WEBRTC_DEFINE_bool( |
| 62 | plot_audio_playout, |
| 63 | false, |
| 64 | "Plot bar graph showing the time between each audio playout."); |
| 65 | WEBRTC_DEFINE_bool( |
| 66 | plot_audio_level, |
| 67 | false, |
| 68 | "Plot line graph showing the audio level of incoming audio."); |
| 69 | WEBRTC_DEFINE_bool( |
| 70 | plot_incoming_sequence_number_delta, |
| 71 | false, |
| 72 | "Plot the sequence number difference between consecutive incoming " |
| 73 | "packets."); |
| 74 | WEBRTC_DEFINE_bool( |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 75 | plot_incoming_delay, |
| 76 | true, |
| 77 | "Plot the 1-way path delay for incoming packets, normalized so " |
| 78 | "that the first packet has delay 0."); |
| 79 | WEBRTC_DEFINE_bool( |
| 80 | plot_incoming_loss_rate, |
| 81 | true, |
| 82 | "Compute the loss rate for incoming packets using a method that's " |
| 83 | "similar to the one used for RTCP SR and RR fraction lost. Note " |
| 84 | "that the loss rate can be negative if packets are duplicated or " |
| 85 | "reordered."); |
| 86 | WEBRTC_DEFINE_bool(plot_incoming_bitrate, |
| 87 | true, |
| 88 | "Plot the total bitrate used by all incoming streams."); |
| 89 | WEBRTC_DEFINE_bool(plot_outgoing_bitrate, |
| 90 | true, |
| 91 | "Plot the total bitrate used by all outgoing streams."); |
| 92 | WEBRTC_DEFINE_bool(plot_incoming_stream_bitrate, |
| 93 | true, |
| 94 | "Plot the bitrate used by each incoming stream."); |
| 95 | WEBRTC_DEFINE_bool(plot_outgoing_stream_bitrate, |
| 96 | true, |
| 97 | "Plot the bitrate used by each outgoing stream."); |
Bjorn Terelius | 9775a58 | 2019-02-15 17:29:58 +0100 | [diff] [blame] | 98 | WEBRTC_DEFINE_bool(plot_incoming_layer_bitrate_allocation, |
| 99 | false, |
| 100 | "Plot the target bitrate for each incoming layer. Requires " |
| 101 | "incoming RTCP XR with target bitrate to be populated."); |
| 102 | WEBRTC_DEFINE_bool(plot_outgoing_layer_bitrate_allocation, |
| 103 | false, |
| 104 | "Plot the target bitrate for each outgoing layer. Requires " |
| 105 | "outgoing RTCP XR with target bitrate to be populated."); |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 106 | WEBRTC_DEFINE_bool( |
| 107 | plot_simulated_receiveside_bwe, |
| 108 | false, |
| 109 | "Run the receive-side bandwidth estimator with the incoming rtp " |
| 110 | "packets and plot the resulting estimate."); |
| 111 | WEBRTC_DEFINE_bool( |
| 112 | plot_simulated_sendside_bwe, |
| 113 | false, |
| 114 | "Run the send-side bandwidth estimator with the outgoing rtp and " |
| 115 | "incoming rtcp and plot the resulting estimate."); |
Sebastian Jansson | 1175ae0 | 2019-03-13 08:56:58 +0100 | [diff] [blame] | 116 | WEBRTC_DEFINE_bool(plot_simulated_goog_cc, |
| 117 | false, |
| 118 | "Run the GoogCC congestion controller based on the logged " |
| 119 | "events and plot the target bitrate."); |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 120 | WEBRTC_DEFINE_bool( |
| 121 | plot_network_delay_feedback, |
| 122 | true, |
| 123 | "Compute network delay based on sent packets and the received " |
| 124 | "transport feedback."); |
| 125 | WEBRTC_DEFINE_bool( |
| 126 | plot_fraction_loss_feedback, |
| 127 | true, |
| 128 | "Plot packet loss in percent for outgoing packets (as perceived by " |
| 129 | "the send-side bandwidth estimator)."); |
| 130 | WEBRTC_DEFINE_bool( |
| 131 | plot_pacer_delay, |
| 132 | false, |
| 133 | "Plot the time each sent packet has spent in the pacer (based on " |
| 134 | "the difference between the RTP timestamp and the send " |
| 135 | "timestamp)."); |
| 136 | WEBRTC_DEFINE_bool( |
| 137 | plot_timestamps, |
| 138 | false, |
| 139 | "Plot the rtp timestamps of all rtp and rtcp packets over time."); |
| 140 | WEBRTC_DEFINE_bool( |
| 141 | plot_rtcp_details, |
| 142 | false, |
| 143 | "Plot the contents of all report blocks in all sender and receiver " |
| 144 | "reports. This includes fraction lost, cumulative number of lost " |
| 145 | "packets, extended highest sequence number and time since last " |
| 146 | "received SR."); |
| 147 | WEBRTC_DEFINE_bool(plot_audio_encoder_bitrate_bps, |
| 148 | false, |
| 149 | "Plot the audio encoder target bitrate."); |
| 150 | WEBRTC_DEFINE_bool(plot_audio_encoder_frame_length_ms, |
| 151 | false, |
| 152 | "Plot the audio encoder frame length."); |
| 153 | WEBRTC_DEFINE_bool( |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 154 | plot_audio_encoder_packet_loss, |
michaelt | 6e5b219 | 2017-02-22 07:33:27 -0800 | [diff] [blame] | 155 | false, |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 156 | "Plot the uplink packet loss fraction which is sent to the audio encoder."); |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 157 | WEBRTC_DEFINE_bool(plot_audio_encoder_fec, |
| 158 | false, |
| 159 | "Plot the audio encoder FEC."); |
| 160 | WEBRTC_DEFINE_bool(plot_audio_encoder_dtx, |
| 161 | false, |
| 162 | "Plot the audio encoder DTX."); |
| 163 | WEBRTC_DEFINE_bool(plot_audio_encoder_num_channels, |
| 164 | false, |
| 165 | "Plot the audio encoder number of channels."); |
| 166 | WEBRTC_DEFINE_bool(plot_neteq_stats, false, "Plot the NetEq statistics."); |
| 167 | WEBRTC_DEFINE_bool(plot_ice_candidate_pair_config, |
| 168 | false, |
| 169 | "Plot the ICE candidate pair config events."); |
| 170 | WEBRTC_DEFINE_bool(plot_ice_connectivity_check, |
| 171 | false, |
| 172 | "Plot the ICE candidate pair connectivity checks."); |
Zach Stein | 10a5801 | 2018-12-07 12:26:28 -0800 | [diff] [blame] | 173 | WEBRTC_DEFINE_bool(plot_dtls_transport_state, |
| 174 | false, |
| 175 | "Plot DTLS transport state changes."); |
| 176 | WEBRTC_DEFINE_bool(plot_dtls_writable_state, |
| 177 | false, |
| 178 | "Plot DTLS writable state changes."); |
Bjorn Terelius | 1edfff9 | 2017-10-11 13:15:19 +0200 | [diff] [blame] | 179 | |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 180 | WEBRTC_DEFINE_string( |
stefan | 985d280 | 2016-11-15 06:54:09 -0800 | [diff] [blame] | 181 | force_fieldtrials, |
| 182 | "", |
| 183 | "Field trials control experimental feature code which can be forced. " |
| 184 | "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/" |
| 185 | " will assign the group Enabled to field trial WebRTC-FooFeature. Multiple " |
| 186 | "trials are separated by \"/\""); |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 187 | WEBRTC_DEFINE_string(wav_filename, |
| 188 | "", |
| 189 | "Path to wav file used for simulation of jitter buffer"); |
| 190 | WEBRTC_DEFINE_bool(help, false, "prints this message"); |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 191 | |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 192 | WEBRTC_DEFINE_bool( |
| 193 | show_detector_state, |
| 194 | false, |
| 195 | "Show the state of the delay based BWE detector on the total " |
| 196 | "bitrate graph"); |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 197 | |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 198 | WEBRTC_DEFINE_bool(show_alr_state, |
| 199 | false, |
| 200 | "Show the state ALR state on the total bitrate graph"); |
Ilya Nikolaevskiy | a4259f6 | 2017-12-05 13:19:45 +0100 | [diff] [blame] | 201 | |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 202 | WEBRTC_DEFINE_bool( |
| 203 | parse_unconfigured_header_extensions, |
| 204 | true, |
| 205 | "Attempt to parse unconfigured header extensions using the default " |
| 206 | "WebRTC mapping. This can give very misleading results if the " |
| 207 | "application negotiates a different mapping."); |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 208 | |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 209 | WEBRTC_DEFINE_bool(print_triage_alerts, |
| 210 | false, |
| 211 | "Print triage alerts, i.e. a list of potential problems."); |
Bjorn Terelius | 2eb3188 | 2017-11-30 15:15:25 +0100 | [diff] [blame] | 212 | |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 213 | WEBRTC_DEFINE_bool( |
| 214 | normalize_time, |
| 215 | true, |
| 216 | "Normalize the log timestamps so that the call starts at time 0."); |
Stefan Holmer | 1d4a227 | 2018-05-24 13:48:09 +0200 | [diff] [blame] | 217 | |
Bjorn Terelius | ff8cce3 | 2019-04-11 18:34:01 +0200 | [diff] [blame] | 218 | WEBRTC_DEFINE_bool(shared_xaxis, |
| 219 | false, |
| 220 | "Share x-axis between all plots so that zooming in one plot " |
| 221 | "updates all the others too. A downside is that certain " |
| 222 | "operations like panning become much slower."); |
| 223 | |
Mirko Bonadei | 2dfa998 | 2018-10-18 11:35:32 +0200 | [diff] [blame] | 224 | WEBRTC_DEFINE_bool(protobuf_output, |
| 225 | false, |
| 226 | "Output charts as protobuf instead of python code."); |
Bjorn Terelius | ef73f59 | 2018-09-10 20:11:49 +0200 | [diff] [blame] | 227 | |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 228 | void SetAllPlotFlags(bool setting); |
| 229 | |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 230 | int main(int argc, char* argv[]) { |
| 231 | std::string program_name = argv[0]; |
| 232 | std::string usage = |
| 233 | "A tool for visualizing WebRTC event logs.\n" |
| 234 | "Example usage:\n" + |
| 235 | program_name + " <logfile> | python\n" + "Run " + program_name + |
| 236 | " --help for a list of command line options\n"; |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 237 | |
| 238 | // Parse command line flags without removing them. We're only interested in |
| 239 | // the |plot_profile| flag. |
| 240 | rtc::FlagList::SetFlagsFromCommandLine(&argc, argv, false); |
| 241 | if (strcmp(FLAG_plot_profile, "all") == 0) { |
| 242 | SetAllPlotFlags(true); |
| 243 | } else if (strcmp(FLAG_plot_profile, "none") == 0) { |
| 244 | SetAllPlotFlags(false); |
Bjorn Terelius | 1edfff9 | 2017-10-11 13:15:19 +0200 | [diff] [blame] | 245 | } else if (strcmp(FLAG_plot_profile, "sendside_bwe") == 0) { |
| 246 | SetAllPlotFlags(false); |
| 247 | FLAG_plot_outgoing_packet_sizes = true; |
| 248 | FLAG_plot_outgoing_bitrate = true; |
| 249 | FLAG_plot_outgoing_stream_bitrate = true; |
| 250 | FLAG_plot_simulated_sendside_bwe = true; |
| 251 | FLAG_plot_network_delay_feedback = true; |
| 252 | FLAG_plot_fraction_loss_feedback = true; |
| 253 | } else if (strcmp(FLAG_plot_profile, "receiveside_bwe") == 0) { |
| 254 | SetAllPlotFlags(false); |
| 255 | FLAG_plot_incoming_packet_sizes = true; |
Bjorn Terelius | 1edfff9 | 2017-10-11 13:15:19 +0200 | [diff] [blame] | 256 | FLAG_plot_incoming_delay = true; |
| 257 | FLAG_plot_incoming_loss_rate = true; |
| 258 | FLAG_plot_incoming_bitrate = true; |
| 259 | FLAG_plot_incoming_stream_bitrate = true; |
| 260 | FLAG_plot_simulated_receiveside_bwe = true; |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 261 | } else if (strcmp(FLAG_plot_profile, "default") == 0) { |
| 262 | // Do nothing. |
| 263 | } else { |
| 264 | rtc::Flag* plot_profile_flag = rtc::FlagList::Lookup("plot_profile"); |
| 265 | RTC_CHECK(plot_profile_flag); |
| 266 | plot_profile_flag->Print(false); |
| 267 | } |
| 268 | // Parse the remaining flags. They are applied relative to the chosen profile. |
kjellander | 4fa5be4 | 2017-05-16 00:01:23 -0700 | [diff] [blame] | 269 | rtc::FlagList::SetFlagsFromCommandLine(&argc, argv, true); |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 270 | |
terelius | c4a5c14 | 2017-07-20 08:05:09 -0700 | [diff] [blame] | 271 | if (argc != 2 || FLAG_help) { |
kjellander | 4fa5be4 | 2017-05-16 00:01:23 -0700 | [diff] [blame] | 272 | // Print usage information. |
| 273 | std::cout << usage; |
terelius | c4a5c14 | 2017-07-20 08:05:09 -0700 | [diff] [blame] | 274 | if (FLAG_help) |
| 275 | rtc::FlagList::Print(nullptr, false); |
kjellander | 4fa5be4 | 2017-05-16 00:01:23 -0700 | [diff] [blame] | 276 | return 0; |
| 277 | } |
| 278 | |
Bjorn Terelius | edab301 | 2018-01-31 17:23:40 +0100 | [diff] [blame] | 279 | // InitFieldTrialsFromString stores the char*, so the char array must outlive |
| 280 | // the application. |
| 281 | webrtc::field_trial::InitFieldTrialsFromString(FLAG_force_fieldtrials); |
stefan | 985d280 | 2016-11-15 06:54:09 -0800 | [diff] [blame] | 282 | |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 283 | std::string filename = argv[1]; |
| 284 | |
Sebastian Jansson | b290a6d | 2019-01-03 14:46:23 +0100 | [diff] [blame] | 285 | webrtc::ParsedRtcEventLog::UnconfiguredHeaderExtensions header_extensions = |
| 286 | webrtc::ParsedRtcEventLog::UnconfiguredHeaderExtensions::kDontParse; |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 287 | if (FLAG_parse_unconfigured_header_extensions) { |
Sebastian Jansson | b290a6d | 2019-01-03 14:46:23 +0100 | [diff] [blame] | 288 | header_extensions = webrtc::ParsedRtcEventLog:: |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 289 | UnconfiguredHeaderExtensions::kAttemptWebrtcDefaultConfig; |
| 290 | } |
Sebastian Jansson | b290a6d | 2019-01-03 14:46:23 +0100 | [diff] [blame] | 291 | webrtc::ParsedRtcEventLog parsed_log(header_extensions); |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 292 | |
| 293 | if (!parsed_log.ParseFile(filename)) { |
| 294 | std::cerr << "Could not parse the entire log file." << std::endl; |
Bjorn Terelius | fdc635d | 2018-11-14 13:40:13 +0100 | [diff] [blame] | 295 | std::cerr << "Only the parsable events will be analyzed." << std::endl; |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 296 | } |
| 297 | |
Stefan Holmer | 1d4a227 | 2018-05-24 13:48:09 +0200 | [diff] [blame] | 298 | webrtc::EventLogAnalyzer analyzer(parsed_log, FLAG_normalize_time); |
Bjorn Terelius | ef73f59 | 2018-09-10 20:11:49 +0200 | [diff] [blame] | 299 | std::unique_ptr<webrtc::PlotCollection> collection; |
| 300 | if (FLAG_protobuf_output) { |
| 301 | collection.reset(new webrtc::ProtobufPlotCollection()); |
| 302 | } else { |
Bjorn Terelius | ff8cce3 | 2019-04-11 18:34:01 +0200 | [diff] [blame] | 303 | collection.reset(new webrtc::PythonPlotCollection(FLAG_shared_xaxis)); |
Bjorn Terelius | ef73f59 | 2018-09-10 20:11:49 +0200 | [diff] [blame] | 304 | } |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 305 | |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 306 | if (FLAG_plot_incoming_packet_sizes) { |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 307 | analyzer.CreatePacketGraph(webrtc::kIncomingPacket, |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 308 | collection->AppendNewPlot()); |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 309 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 310 | if (FLAG_plot_outgoing_packet_sizes) { |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 311 | analyzer.CreatePacketGraph(webrtc::kOutgoingPacket, |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 312 | collection->AppendNewPlot()); |
| 313 | } |
Bjorn Terelius | 7c974e6 | 2019-02-15 17:20:12 +0100 | [diff] [blame] | 314 | if (FLAG_plot_incoming_rtcp_types) { |
| 315 | analyzer.CreateRtcpTypeGraph(webrtc::kIncomingPacket, |
| 316 | collection->AppendNewPlot()); |
| 317 | } |
| 318 | if (FLAG_plot_outgoing_rtcp_types) { |
| 319 | analyzer.CreateRtcpTypeGraph(webrtc::kOutgoingPacket, |
| 320 | collection->AppendNewPlot()); |
| 321 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 322 | if (FLAG_plot_incoming_packet_count) { |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 323 | analyzer.CreateAccumulatedPacketsGraph(webrtc::kIncomingPacket, |
| 324 | collection->AppendNewPlot()); |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 325 | } |
| 326 | if (FLAG_plot_outgoing_packet_count) { |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 327 | analyzer.CreateAccumulatedPacketsGraph(webrtc::kOutgoingPacket, |
| 328 | collection->AppendNewPlot()); |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 329 | } |
| 330 | if (FLAG_plot_audio_playout) { |
terelius | dc35dcd | 2016-08-01 12:03:27 -0700 | [diff] [blame] | 331 | analyzer.CreatePlayoutGraph(collection->AppendNewPlot()); |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 332 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 333 | if (FLAG_plot_audio_level) { |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 334 | analyzer.CreateAudioLevelGraph(webrtc::kIncomingPacket, |
| 335 | collection->AppendNewPlot()); |
| 336 | analyzer.CreateAudioLevelGraph(webrtc::kOutgoingPacket, |
| 337 | collection->AppendNewPlot()); |
ivoc | aac9d6f | 2016-09-22 07:01:47 -0700 | [diff] [blame] | 338 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 339 | if (FLAG_plot_incoming_sequence_number_delta) { |
| 340 | analyzer.CreateSequenceNumberGraph(collection->AppendNewPlot()); |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 341 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 342 | if (FLAG_plot_incoming_delay) { |
| 343 | analyzer.CreateIncomingDelayGraph(collection->AppendNewPlot()); |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 344 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 345 | if (FLAG_plot_incoming_loss_rate) { |
Stefan Holmer | 99f8e08 | 2016-09-09 13:37:50 +0200 | [diff] [blame] | 346 | analyzer.CreateIncomingPacketLossGraph(collection->AppendNewPlot()); |
terelius | f736d23 | 2016-08-04 10:00:11 -0700 | [diff] [blame] | 347 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 348 | if (FLAG_plot_incoming_bitrate) { |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 349 | analyzer.CreateTotalIncomingBitrateGraph(collection->AppendNewPlot()); |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 350 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 351 | if (FLAG_plot_outgoing_bitrate) { |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 352 | analyzer.CreateTotalOutgoingBitrateGraph(collection->AppendNewPlot(), |
| 353 | FLAG_show_detector_state, |
| 354 | FLAG_show_alr_state); |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 355 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 356 | if (FLAG_plot_incoming_stream_bitrate) { |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 357 | analyzer.CreateStreamBitrateGraph(webrtc::kIncomingPacket, |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 358 | collection->AppendNewPlot()); |
| 359 | } |
| 360 | if (FLAG_plot_outgoing_stream_bitrate) { |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 361 | analyzer.CreateStreamBitrateGraph(webrtc::kOutgoingPacket, |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 362 | collection->AppendNewPlot()); |
| 363 | } |
Bjorn Terelius | 9775a58 | 2019-02-15 17:29:58 +0100 | [diff] [blame] | 364 | if (FLAG_plot_incoming_layer_bitrate_allocation) { |
| 365 | analyzer.CreateBitrateAllocationGraph(webrtc::kIncomingPacket, |
| 366 | collection->AppendNewPlot()); |
| 367 | } |
| 368 | if (FLAG_plot_outgoing_layer_bitrate_allocation) { |
| 369 | analyzer.CreateBitrateAllocationGraph(webrtc::kOutgoingPacket, |
| 370 | collection->AppendNewPlot()); |
| 371 | } |
Bjorn Terelius | 28db266 | 2017-10-04 14:22:43 +0200 | [diff] [blame] | 372 | if (FLAG_plot_simulated_receiveside_bwe) { |
| 373 | analyzer.CreateReceiveSideBweSimulationGraph(collection->AppendNewPlot()); |
| 374 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 375 | if (FLAG_plot_simulated_sendside_bwe) { |
Bjorn Terelius | 28db266 | 2017-10-04 14:22:43 +0200 | [diff] [blame] | 376 | analyzer.CreateSendSideBweSimulationGraph(collection->AppendNewPlot()); |
Stefan Holmer | 1318103 | 2016-07-29 14:48:54 +0200 | [diff] [blame] | 377 | } |
Sebastian Jansson | 1175ae0 | 2019-03-13 08:56:58 +0100 | [diff] [blame] | 378 | if (FLAG_plot_simulated_goog_cc) { |
| 379 | analyzer.CreateGoogCcSimulationGraph(collection->AppendNewPlot()); |
| 380 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 381 | if (FLAG_plot_network_delay_feedback) { |
terelius | e34c19c | 2016-08-15 08:47:14 -0700 | [diff] [blame] | 382 | analyzer.CreateNetworkDelayFeedbackGraph(collection->AppendNewPlot()); |
stefan | c3de033 | 2016-08-02 07:22:17 -0700 | [diff] [blame] | 383 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 384 | if (FLAG_plot_fraction_loss_feedback) { |
| 385 | analyzer.CreateFractionLossGraph(collection->AppendNewPlot()); |
| 386 | } |
| 387 | if (FLAG_plot_timestamps) { |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 388 | analyzer.CreateTimestampGraph(webrtc::kIncomingPacket, |
| 389 | collection->AppendNewPlot()); |
| 390 | analyzer.CreateTimestampGraph(webrtc::kOutgoingPacket, |
| 391 | collection->AppendNewPlot()); |
stefan | e372d3c | 2017-02-02 08:04:18 -0800 | [diff] [blame] | 392 | } |
Bjorn Terelius | b1222c2 | 2018-07-24 13:45:31 +0200 | [diff] [blame] | 393 | if (FLAG_plot_rtcp_details) { |
| 394 | auto GetFractionLost = [](const webrtc::rtcp::ReportBlock& block) -> float { |
| 395 | return static_cast<double>(block.fraction_lost()) / 256 * 100; |
| 396 | }; |
| 397 | analyzer.CreateSenderAndReceiverReportPlot( |
| 398 | webrtc::kIncomingPacket, GetFractionLost, |
| 399 | "Fraction lost (incoming RTCP)", "Loss rate (percent)", |
| 400 | collection->AppendNewPlot()); |
| 401 | analyzer.CreateSenderAndReceiverReportPlot( |
| 402 | webrtc::kOutgoingPacket, GetFractionLost, |
| 403 | "Fraction lost (outgoing RTCP)", "Loss rate (percent)", |
| 404 | collection->AppendNewPlot()); |
| 405 | |
| 406 | auto GetCumulativeLost = |
| 407 | [](const webrtc::rtcp::ReportBlock& block) -> float { |
| 408 | return block.cumulative_lost_signed(); |
| 409 | }; |
| 410 | analyzer.CreateSenderAndReceiverReportPlot( |
| 411 | webrtc::kIncomingPacket, GetCumulativeLost, |
| 412 | "Cumulative lost packets (incoming RTCP)", "Packets", |
| 413 | collection->AppendNewPlot()); |
| 414 | analyzer.CreateSenderAndReceiverReportPlot( |
| 415 | webrtc::kOutgoingPacket, GetCumulativeLost, |
| 416 | "Cumulative lost packets (outgoing RTCP)", "Packets", |
| 417 | collection->AppendNewPlot()); |
| 418 | |
| 419 | auto GetHighestSeqNumber = |
| 420 | [](const webrtc::rtcp::ReportBlock& block) -> float { |
| 421 | return block.extended_high_seq_num(); |
| 422 | }; |
| 423 | analyzer.CreateSenderAndReceiverReportPlot( |
| 424 | webrtc::kIncomingPacket, GetHighestSeqNumber, |
Bjorn Terelius | ef73f59 | 2018-09-10 20:11:49 +0200 | [diff] [blame] | 425 | "Highest sequence number (incoming RTCP)", "Sequence number", |
Bjorn Terelius | b1222c2 | 2018-07-24 13:45:31 +0200 | [diff] [blame] | 426 | collection->AppendNewPlot()); |
| 427 | analyzer.CreateSenderAndReceiverReportPlot( |
| 428 | webrtc::kOutgoingPacket, GetHighestSeqNumber, |
Bjorn Terelius | ef73f59 | 2018-09-10 20:11:49 +0200 | [diff] [blame] | 429 | "Highest sequence number (outgoing RTCP)", "Sequence number", |
Bjorn Terelius | b1222c2 | 2018-07-24 13:45:31 +0200 | [diff] [blame] | 430 | collection->AppendNewPlot()); |
| 431 | |
| 432 | auto DelaySinceLastSr = |
| 433 | [](const webrtc::rtcp::ReportBlock& block) -> float { |
| 434 | return static_cast<double>(block.delay_since_last_sr()) / 65536; |
| 435 | }; |
| 436 | analyzer.CreateSenderAndReceiverReportPlot( |
| 437 | webrtc::kIncomingPacket, DelaySinceLastSr, |
| 438 | "Delay since last received sender report (incoming RTCP)", "Time (s)", |
| 439 | collection->AppendNewPlot()); |
| 440 | analyzer.CreateSenderAndReceiverReportPlot( |
| 441 | webrtc::kOutgoingPacket, DelaySinceLastSr, |
| 442 | "Delay since last received sender report (outgoing RTCP)", "Time (s)", |
| 443 | collection->AppendNewPlot()); |
| 444 | } |
| 445 | |
Bjorn Terelius | 0295a96 | 2017-10-25 17:42:41 +0200 | [diff] [blame] | 446 | if (FLAG_plot_pacer_delay) { |
| 447 | analyzer.CreatePacerDelayGraph(collection->AppendNewPlot()); |
| 448 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 449 | if (FLAG_plot_audio_encoder_bitrate_bps) { |
michaelt | 6e5b219 | 2017-02-22 07:33:27 -0800 | [diff] [blame] | 450 | analyzer.CreateAudioEncoderTargetBitrateGraph(collection->AppendNewPlot()); |
| 451 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 452 | if (FLAG_plot_audio_encoder_frame_length_ms) { |
michaelt | 6e5b219 | 2017-02-22 07:33:27 -0800 | [diff] [blame] | 453 | analyzer.CreateAudioEncoderFrameLengthGraph(collection->AppendNewPlot()); |
| 454 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 455 | if (FLAG_plot_audio_encoder_packet_loss) { |
| 456 | analyzer.CreateAudioEncoderPacketLossGraph(collection->AppendNewPlot()); |
michaelt | 6e5b219 | 2017-02-22 07:33:27 -0800 | [diff] [blame] | 457 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 458 | if (FLAG_plot_audio_encoder_fec) { |
michaelt | 6e5b219 | 2017-02-22 07:33:27 -0800 | [diff] [blame] | 459 | analyzer.CreateAudioEncoderEnableFecGraph(collection->AppendNewPlot()); |
| 460 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 461 | if (FLAG_plot_audio_encoder_dtx) { |
michaelt | 6e5b219 | 2017-02-22 07:33:27 -0800 | [diff] [blame] | 462 | analyzer.CreateAudioEncoderEnableDtxGraph(collection->AppendNewPlot()); |
| 463 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 464 | if (FLAG_plot_audio_encoder_num_channels) { |
michaelt | 6e5b219 | 2017-02-22 07:33:27 -0800 | [diff] [blame] | 465 | analyzer.CreateAudioEncoderNumChannelsGraph(collection->AppendNewPlot()); |
| 466 | } |
Minyue Li | 27e2b7d | 2018-05-07 15:20:24 +0200 | [diff] [blame] | 467 | if (FLAG_plot_neteq_stats) { |
owb | 7fbeb0b | 2017-08-16 02:48:33 -0700 | [diff] [blame] | 468 | std::string wav_path; |
| 469 | if (FLAG_wav_filename[0] != '\0') { |
| 470 | wav_path = FLAG_wav_filename; |
| 471 | } else { |
| 472 | wav_path = webrtc::test::ResourcePath( |
| 473 | "audio_processing/conversational_speech/EN_script2_F_sp2_B1", "wav"); |
| 474 | } |
Minyue Li | c6ff757 | 2018-05-04 09:46:44 +0200 | [diff] [blame] | 475 | auto neteq_stats = analyzer.SimulateNetEq(wav_path, 48000); |
Minyue Li | 01d2a67 | 2018-06-21 21:17:19 +0200 | [diff] [blame] | 476 | for (webrtc::EventLogAnalyzer::NetEqStatsGetterMap::const_iterator it = |
| 477 | neteq_stats.cbegin(); |
| 478 | it != neteq_stats.cend(); ++it) { |
| 479 | analyzer.CreateAudioJitterBufferGraph(it->first, it->second.get(), |
Minyue Li | 45fc6df | 2018-06-21 11:47:14 +0200 | [diff] [blame] | 480 | collection->AppendNewPlot()); |
| 481 | } |
Minyue Li | c9ac93f | 2018-06-26 13:01:32 +0200 | [diff] [blame] | 482 | analyzer.CreateNetEqNetworkStatsGraph( |
Minyue Li | 27e2b7d | 2018-05-07 15:20:24 +0200 | [diff] [blame] | 483 | neteq_stats, |
| 484 | [](const webrtc::NetEqNetworkStatistics& stats) { |
| 485 | return stats.expand_rate / 16384.f; |
| 486 | }, |
| 487 | "Expand rate", collection->AppendNewPlot()); |
Minyue Li | c9ac93f | 2018-06-26 13:01:32 +0200 | [diff] [blame] | 488 | analyzer.CreateNetEqNetworkStatsGraph( |
Minyue Li | 27e2b7d | 2018-05-07 15:20:24 +0200 | [diff] [blame] | 489 | neteq_stats, |
| 490 | [](const webrtc::NetEqNetworkStatistics& stats) { |
| 491 | return stats.speech_expand_rate / 16384.f; |
| 492 | }, |
| 493 | "Speech expand rate", collection->AppendNewPlot()); |
Minyue Li | c9ac93f | 2018-06-26 13:01:32 +0200 | [diff] [blame] | 494 | analyzer.CreateNetEqNetworkStatsGraph( |
Minyue Li | 27e2b7d | 2018-05-07 15:20:24 +0200 | [diff] [blame] | 495 | neteq_stats, |
| 496 | [](const webrtc::NetEqNetworkStatistics& stats) { |
| 497 | return stats.accelerate_rate / 16384.f; |
| 498 | }, |
| 499 | "Accelerate rate", collection->AppendNewPlot()); |
Minyue Li | c9ac93f | 2018-06-26 13:01:32 +0200 | [diff] [blame] | 500 | analyzer.CreateNetEqNetworkStatsGraph( |
Minyue Li | 27e2b7d | 2018-05-07 15:20:24 +0200 | [diff] [blame] | 501 | neteq_stats, |
| 502 | [](const webrtc::NetEqNetworkStatistics& stats) { |
Jakob Ivarsson | 21f6fd7 | 2019-04-04 10:15:02 +0200 | [diff] [blame] | 503 | return stats.preemptive_rate / 16384.f; |
| 504 | }, |
| 505 | "Preemptive rate", collection->AppendNewPlot()); |
| 506 | analyzer.CreateNetEqNetworkStatsGraph( |
| 507 | neteq_stats, |
| 508 | [](const webrtc::NetEqNetworkStatistics& stats) { |
Minyue Li | 27e2b7d | 2018-05-07 15:20:24 +0200 | [diff] [blame] | 509 | return stats.packet_loss_rate / 16384.f; |
| 510 | }, |
| 511 | "Packet loss rate", collection->AppendNewPlot()); |
Minyue Li | c9ac93f | 2018-06-26 13:01:32 +0200 | [diff] [blame] | 512 | analyzer.CreateNetEqLifetimeStatsGraph( |
| 513 | neteq_stats, |
| 514 | [](const webrtc::NetEqLifetimeStatistics& stats) { |
| 515 | return static_cast<float>(stats.concealment_events); |
| 516 | }, |
| 517 | "Concealment events", collection->AppendNewPlot()); |
Jakob Ivarsson | 21f6fd7 | 2019-04-04 10:15:02 +0200 | [diff] [blame] | 518 | analyzer.CreateNetEqNetworkStatsGraph( |
| 519 | neteq_stats, |
| 520 | [](const webrtc::NetEqNetworkStatistics& stats) { |
| 521 | return stats.preferred_buffer_size_ms; |
| 522 | }, |
| 523 | "Preferred buffer size (ms)", collection->AppendNewPlot()); |
henrik.lundin | 3c938fc | 2017-06-14 06:09:58 -0700 | [diff] [blame] | 524 | } |
| 525 | |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 526 | if (FLAG_plot_ice_candidate_pair_config) { |
| 527 | analyzer.CreateIceCandidatePairConfigGraph(collection->AppendNewPlot()); |
| 528 | } |
| 529 | if (FLAG_plot_ice_connectivity_check) { |
| 530 | analyzer.CreateIceConnectivityCheckGraph(collection->AppendNewPlot()); |
| 531 | } |
| 532 | |
Zach Stein | 10a5801 | 2018-12-07 12:26:28 -0800 | [diff] [blame] | 533 | if (FLAG_plot_dtls_transport_state) { |
| 534 | analyzer.CreateDtlsTransportStateGraph(collection->AppendNewPlot()); |
| 535 | } |
| 536 | if (FLAG_plot_dtls_writable_state) { |
| 537 | analyzer.CreateDtlsWritableStateGraph(collection->AppendNewPlot()); |
| 538 | } |
| 539 | |
terelius | dc35dcd | 2016-08-01 12:03:27 -0700 | [diff] [blame] | 540 | collection->Draw(); |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 541 | |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 542 | if (FLAG_print_triage_alerts) { |
Bjorn Terelius | 2eb3188 | 2017-11-30 15:15:25 +0100 | [diff] [blame] | 543 | analyzer.CreateTriageNotifications(); |
| 544 | analyzer.PrintNotifications(stderr); |
| 545 | } |
| 546 | |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 547 | return 0; |
| 548 | } |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 549 | |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 550 | void SetAllPlotFlags(bool setting) { |
| 551 | FLAG_plot_incoming_packet_sizes = setting; |
| 552 | FLAG_plot_outgoing_packet_sizes = setting; |
Bjorn Terelius | 7c974e6 | 2019-02-15 17:20:12 +0100 | [diff] [blame] | 553 | FLAG_plot_incoming_rtcp_types = setting; |
| 554 | FLAG_plot_outgoing_rtcp_types = setting; |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 555 | FLAG_plot_incoming_packet_count = setting; |
| 556 | FLAG_plot_outgoing_packet_count = setting; |
| 557 | FLAG_plot_audio_playout = setting; |
| 558 | FLAG_plot_audio_level = setting; |
| 559 | FLAG_plot_incoming_sequence_number_delta = setting; |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 560 | FLAG_plot_incoming_delay = setting; |
| 561 | FLAG_plot_incoming_loss_rate = setting; |
| 562 | FLAG_plot_incoming_bitrate = setting; |
| 563 | FLAG_plot_outgoing_bitrate = setting; |
| 564 | FLAG_plot_incoming_stream_bitrate = setting; |
| 565 | FLAG_plot_outgoing_stream_bitrate = setting; |
Bjorn Terelius | 9775a58 | 2019-02-15 17:29:58 +0100 | [diff] [blame] | 566 | FLAG_plot_incoming_layer_bitrate_allocation = setting; |
| 567 | FLAG_plot_outgoing_layer_bitrate_allocation = setting; |
Bjorn Terelius | 28db266 | 2017-10-04 14:22:43 +0200 | [diff] [blame] | 568 | FLAG_plot_simulated_receiveside_bwe = setting; |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 569 | FLAG_plot_simulated_sendside_bwe = setting; |
Sebastian Jansson | 1175ae0 | 2019-03-13 08:56:58 +0100 | [diff] [blame] | 570 | FLAG_plot_simulated_goog_cc = setting; |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 571 | FLAG_plot_network_delay_feedback = setting; |
| 572 | FLAG_plot_fraction_loss_feedback = setting; |
| 573 | FLAG_plot_timestamps = setting; |
Bjorn Terelius | b1222c2 | 2018-07-24 13:45:31 +0200 | [diff] [blame] | 574 | FLAG_plot_rtcp_details = setting; |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 575 | FLAG_plot_audio_encoder_bitrate_bps = setting; |
| 576 | FLAG_plot_audio_encoder_frame_length_ms = setting; |
| 577 | FLAG_plot_audio_encoder_packet_loss = setting; |
| 578 | FLAG_plot_audio_encoder_fec = setting; |
| 579 | FLAG_plot_audio_encoder_dtx = setting; |
| 580 | FLAG_plot_audio_encoder_num_channels = setting; |
Minyue Li | 27e2b7d | 2018-05-07 15:20:24 +0200 | [diff] [blame] | 581 | FLAG_plot_neteq_stats = setting; |
Qingsi Wang | 8eca1ff | 2018-02-02 11:49:44 -0800 | [diff] [blame] | 582 | FLAG_plot_ice_candidate_pair_config = setting; |
| 583 | FLAG_plot_ice_connectivity_check = setting; |
Konrad Hofbauer | ca3c801 | 2019-02-15 20:52:19 +0100 | [diff] [blame] | 584 | FLAG_plot_pacer_delay = setting; |
terelius | 2ee076d | 2017-08-15 02:04:02 -0700 | [diff] [blame] | 585 | } |