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

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

Issue 2695923004: Add logging of delay-based bandwidth estimate. (Closed)
Patch Set: Only log BWE update if bitrate or state has changed. Created 3 years, 10 months 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 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 for (const auto& kv : rtcp_packets_) { 1126 for (const auto& kv : rtcp_packets_) {
1127 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) { 1127 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) {
1128 for (const LoggedRtcpPacket& rtcp_packet : kv.second) 1128 for (const LoggedRtcpPacket& rtcp_packet : kv.second)
1129 incoming_rtcp.insert( 1129 incoming_rtcp.insert(
1130 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); 1130 std::make_pair(rtcp_packet.timestamp, &rtcp_packet));
1131 } 1131 }
1132 } 1132 }
1133 1133
1134 SimulatedClock clock(0); 1134 SimulatedClock clock(0);
1135 NullBitrateController null_controller; 1135 NullBitrateController null_controller;
1136 TransportFeedbackAdapter feedback_adapter(&clock, &null_controller); 1136 TransportFeedbackAdapter feedback_adapter(nullptr, &clock, &null_controller);
1137 feedback_adapter.InitBwe(); 1137 feedback_adapter.InitBwe();
1138 1138
1139 TimeSeries time_series; 1139 TimeSeries time_series;
1140 time_series.label = "Network Delay Change"; 1140 time_series.label = "Network Delay Change";
1141 time_series.style = LINE_DOT_GRAPH; 1141 time_series.style = LINE_DOT_GRAPH;
1142 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max(); 1142 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max();
1143 1143
1144 auto rtp_iterator = outgoing_rtp.begin(); 1144 auto rtp_iterator = outgoing_rtp.begin();
1145 auto rtcp_iterator = incoming_rtcp.begin(); 1145 auto rtcp_iterator = incoming_rtcp.begin();
1146 1146
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 } 1269 }
1270 } 1270 }
1271 } 1271 }
1272 1272
1273 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); 1273 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin);
1274 plot->SetSuggestedYAxis(0, 1, "Timestamp (90khz)", kBottomMargin, kTopMargin); 1274 plot->SetSuggestedYAxis(0, 1, "Timestamp (90khz)", kBottomMargin, kTopMargin);
1275 plot->SetTitle("Timestamps"); 1275 plot->SetTitle("Timestamps");
1276 } 1276 }
1277 } // namespace plotting 1277 } // namespace plotting
1278 } // namespace webrtc 1278 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/estimators/send_side.cc ('k') | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698