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

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

Issue 2235373004: Probing: Add support for exponential startup probing (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@fix_probing2
Patch Set: Updates Created 4 years, 4 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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 874
875 for (const auto& kv : rtcp_packets_) { 875 for (const auto& kv : rtcp_packets_) {
876 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) { 876 if (kv.first.GetDirection() == PacketDirection::kIncomingPacket) {
877 for (const LoggedRtcpPacket& rtcp_packet : kv.second) 877 for (const LoggedRtcpPacket& rtcp_packet : kv.second)
878 incoming_rtcp.insert( 878 incoming_rtcp.insert(
879 std::make_pair(rtcp_packet.timestamp, &rtcp_packet)); 879 std::make_pair(rtcp_packet.timestamp, &rtcp_packet));
880 } 880 }
881 } 881 }
882 882
883 SimulatedClock clock(0); 883 SimulatedClock clock(0);
884 TransportFeedbackAdapter feedback_adapter(nullptr, &clock); 884 TransportFeedbackAdapter feedback_adapter(&clock);
885 885
886 TimeSeries time_series; 886 TimeSeries time_series;
887 time_series.label = "Network Delay Change"; 887 time_series.label = "Network Delay Change";
888 time_series.style = LINE_DOT_GRAPH; 888 time_series.style = LINE_DOT_GRAPH;
889 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max(); 889 int64_t estimated_base_delay_ms = std::numeric_limits<int64_t>::max();
890 890
891 auto rtp_iterator = outgoing_rtp.begin(); 891 auto rtp_iterator = outgoing_rtp.begin();
892 auto rtcp_iterator = incoming_rtcp.begin(); 892 auto rtcp_iterator = incoming_rtcp.begin();
893 893
894 auto NextRtpTime = [&]() { 894 auto NextRtpTime = [&]() {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 point.y -= estimated_base_delay_ms; 944 point.y -= estimated_base_delay_ms;
945 // Add the data set to the plot. 945 // Add the data set to the plot.
946 plot->series_list_.push_back(std::move(time_series)); 946 plot->series_list_.push_back(std::move(time_series));
947 947
948 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); 948 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin);
949 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); 949 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin);
950 plot->SetTitle("Network Delay Change."); 950 plot->SetTitle("Network Delay Change.");
951 } 951 }
952 } // namespace plotting 952 } // namespace plotting
953 } // namespace webrtc 953 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698