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}
This commit is contained in:
philipel
2017-07-14 06:30:03 -07:00
committed by Commit Bot
parent 9b1367f233
commit 23c7f25266
6 changed files with 139 additions and 6 deletions

View File

@ -90,6 +90,11 @@ DEFINE_string(
"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 @@ int main(int argc, char* argv[]) {
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);
}
}