Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: webrtc/tools/event_log_visualizer/analyzer.cc

Issue 2499283002: Add support for field trials to event log visualizer. (Closed)
Patch Set: . Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 } 1150 }
1151 } 1151 }
1152 ++rtcp_iterator; 1152 ++rtcp_iterator;
1153 } 1153 }
1154 if (clock.TimeInMicroseconds() >= NextRtpTime()) { 1154 if (clock.TimeInMicroseconds() >= NextRtpTime()) {
1155 RTC_DCHECK_EQ(clock.TimeInMicroseconds(), NextRtpTime()); 1155 RTC_DCHECK_EQ(clock.TimeInMicroseconds(), NextRtpTime());
1156 const LoggedRtpPacket& rtp = *rtp_iterator->second; 1156 const LoggedRtpPacket& rtp = *rtp_iterator->second;
1157 if (rtp.header.extension.hasTransportSequenceNumber) { 1157 if (rtp.header.extension.hasTransportSequenceNumber) {
1158 RTC_DCHECK(rtp.header.extension.hasTransportSequenceNumber); 1158 RTC_DCHECK(rtp.header.extension.hasTransportSequenceNumber);
1159 feedback_adapter.AddPacket(rtp.header.extension.transportSequenceNumber, 1159 feedback_adapter.AddPacket(rtp.header.extension.transportSequenceNumber,
1160 rtp.total_length, 0); 1160 rtp.total_length, PacketInfo::kNotAProbe);
1161 feedback_adapter.OnSentPacket( 1161 feedback_adapter.OnSentPacket(
1162 rtp.header.extension.transportSequenceNumber, rtp.timestamp / 1000); 1162 rtp.header.extension.transportSequenceNumber, rtp.timestamp / 1000);
1163 } 1163 }
1164 ++rtp_iterator; 1164 ++rtp_iterator;
1165 } 1165 }
1166 time_us = std::min(NextRtpTime(), NextRtcpTime()); 1166 time_us = std::min(NextRtpTime(), NextRtcpTime());
1167 } 1167 }
1168 // We assume that the base network delay (w/o queues) is the min delay 1168 // We assume that the base network delay (w/o queues) is the min delay
1169 // observed during the call. 1169 // observed during the call.
1170 for (TimeSeriesPoint& point : time_series.points) 1170 for (TimeSeriesPoint& point : time_series.points)
1171 point.y -= estimated_base_delay_ms; 1171 point.y -= estimated_base_delay_ms;
1172 // Add the data set to the plot. 1172 // Add the data set to the plot.
1173 plot->series_list_.push_back(std::move(time_series)); 1173 plot->series_list_.push_back(std::move(time_series));
1174 1174
1175 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); 1175 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin);
1176 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); 1176 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin);
1177 plot->SetTitle("Network Delay Change."); 1177 plot->SetTitle("Network Delay Change.");
1178 } 1178 }
1179 } // namespace plotting 1179 } // namespace plotting
1180 } // namespace webrtc 1180 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698