Added -show_detector_state which show the detector state in the total bitrate graph.
BUG=none
Review-Url: https://codereview.webrtc.org/2826313004
Cr-Commit-Position: refs/heads/master@{#19020}
diff --git a/webrtc/rtc_tools/event_log_visualizer/main.cc b/webrtc/rtc_tools/event_log_visualizer/main.cc
index 6e78c89..a4490aa 100644
--- a/webrtc/rtc_tools/event_log_visualizer/main.cc
+++ b/webrtc/rtc_tools/event_log_visualizer/main.cc
@@ -90,6 +90,11 @@
"trials are separated by \"/\"");
DEFINE_bool(help, false, "prints this message");
+DEFINE_bool(
+ show_detector_state,
+ false,
+ "Mark the delay based bwe detector state on the total bitrate graph");
+
int main(int argc, char* argv[]) {
std::string program_name = argv[0];
std::string usage =
@@ -178,11 +183,13 @@
if (FLAG_plot_all || FLAG_plot_total_bitrate) {
if (FLAG_incoming) {
analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kIncomingPacket,
- collection->AppendNewPlot());
+ collection->AppendNewPlot(),
+ FLAG_show_detector_state);
}
if (FLAG_outgoing) {
analyzer.CreateTotalBitrateGraph(webrtc::PacketDirection::kOutgoingPacket,
- collection->AppendNewPlot());
+ collection->AppendNewPlot(),
+ FLAG_show_detector_state);
}
}