Split LoggedBweProbeResult into -Success and -Failure.

Also change ParsedEventLog::EventType to enum class.

Bug: webrtc:8111
Change-Id: I4747fb9cbcbdb963fa032770078218e5b416b3da
Reviewed-on: https://webrtc-review.googlesource.com/79280
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Elad Alon <eladalon@webrtc.org>
Reviewed-by: Minyue Li <minyue@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23432}
This commit is contained in:
Bjorn Terelius
2018-05-29 14:45:53 +02:00
committed by Commit Bot
parent 9545e1c9e5
commit 7a0bb00422
8 changed files with 261 additions and 162 deletions

View File

@ -977,12 +977,10 @@ void EventLogAnalyzer::CreateTotalOutgoingBitrateGraph(Plot* plot,
TimeSeries result_series("Probing results.", LineStyle::kNone,
PointStyle::kHighlight);
for (auto& result : parsed_log_.bwe_probe_result_events()) {
if (result.bitrate_bps) {
float x = ToCallTimeSec(result.log_time_us());
float y = static_cast<float>(*result.bitrate_bps) / 1000;
result_series.points.emplace_back(x, y);
}
for (auto& result : parsed_log_.bwe_probe_success_events()) {
float x = ToCallTimeSec(result.log_time_us());
float y = static_cast<float>(result.bitrate_bps) / 1000;
result_series.points.emplace_back(x, y);
}
IntervalSeries alr_state("ALR", "#555555", IntervalSeries::kHorizontal);