From a728c919a4f3f3a3b2a611c2633e7d4a08664928 Mon Sep 17 00:00:00 2001 From: Bjorn Terelius Date: Thu, 6 Dec 2018 12:26:30 +0100 Subject: [PATCH] Fix performance bug in CreateSendSideBweSimulationGraph MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:10097 Change-Id: Ie60619084cd4bd47f5f81d06262ba62631eac12f Reviewed-on: https://webrtc-review.googlesource.com/c/113423 Reviewed-by: Sebastian Jansson Commit-Queue: Björn Terelius Cr-Commit-Position: refs/heads/master@{#25916} --- rtc_tools/event_log_visualizer/analyzer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtc_tools/event_log_visualizer/analyzer.cc b/rtc_tools/event_log_visualizer/analyzer.cc index 8d346f03e0..567276c829 100644 --- a/rtc_tools/event_log_visualizer/analyzer.cc +++ b/rtc_tools/event_log_visualizer/analyzer.cc @@ -1097,7 +1097,7 @@ void EventLogAnalyzer::CreateSendSideBweSimulationGraph(Plot* plot) { return static_cast(rtcp_iterator->log_time_us()); return std::numeric_limits::max(); }; - int64_t next_process_time_us_ = clock.TimeInMicroseconds(); + int64_t next_process_time_us_ = std::min({NextRtpTime(), NextRtcpTime()}); auto NextProcessTime = [&]() { if (rtcp_iterator != incoming_rtcp.end() ||