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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/packet_receiver.cc

Issue 2456373002: Update BWE_TEST_LOGGING_PLOT output format, and fix plot_dynamics.py script. (Closed)
Patch Set: Suppress warnings about unused variable. 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 26 matching lines...) Expand all
37 last_delay_plot_ms_(0), 37 last_delay_plot_ms_(0),
38 // #2 aligns the plot with the right axis. 38 // #2 aligns the plot with the right axis.
39 delay_prefix_("Delay_ms#2"), 39 delay_prefix_("Delay_ms#2"),
40 bwe_type_(bwe_type) { 40 bwe_type_(bwe_type) {
41 if (metric_recorder_ != nullptr) { 41 if (metric_recorder_ != nullptr) {
42 // Setup the prefix std::strings used when logging. 42 // Setup the prefix std::strings used when logging.
43 std::vector<std::string> prefixes; 43 std::vector<std::string> prefixes;
44 44
45 // Metric recorder plots them in separated figures, 45 // Metric recorder plots them in separated figures,
46 // alignment will take place with the #1 left axis. 46 // alignment will take place with the #1 left axis.
47 prefixes.push_back("Throughput_kbps#1"); 47 prefixes.push_back("MetricRecorderThroughput_kbps#1");
48 prefixes.push_back("Sending_Estimate_kbps#1"); 48 prefixes.push_back("Sending_Estimate_kbps#1");
49 prefixes.push_back("Delay_ms_#1"); 49 prefixes.push_back("Delay_ms_#1");
50 prefixes.push_back("Packet_Loss_#1"); 50 prefixes.push_back("Packet_Loss_#1");
51 prefixes.push_back("Objective_function_#1"); 51 prefixes.push_back("Objective_function_#1");
52 52
53 // Plot Total/PerFlow Available capacity together with throughputs. 53 // Plot Total/PerFlow Available capacity together with throughputs.
54 prefixes.push_back("Throughput_kbps#1"); // Total Available. 54 prefixes.push_back("Capacity_kbps#1"); // Total Available.
55 prefixes.push_back("Throughput_kbps#1"); // Available per flow. 55 prefixes.push_back("PerFlowCapacity_kbps#1"); // Available per flow.
56 56
57 bool plot_loss = plot_delay; // Plot loss if delay is plotted. 57 bool plot_loss = plot_delay; // Plot loss if delay is plotted.
58 metric_recorder_->SetPlotInformation(prefixes, plot_delay, plot_loss); 58 metric_recorder_->SetPlotInformation(prefixes, plot_delay, plot_loss);
59 } 59 }
60 } 60 }
61 61
62 PacketReceiver::PacketReceiver(PacketProcessorListener* listener, 62 PacketReceiver::PacketReceiver(PacketProcessorListener* listener,
63 int flow_id, 63 int flow_id,
64 BandwidthEstimatorType bwe_type, 64 BandwidthEstimatorType bwe_type,
65 bool plot_delay, 65 bool plot_delay,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 float PacketReceiver::GlobalPacketLoss() { 138 float PacketReceiver::GlobalPacketLoss() {
139 return bwe_receiver_->GlobalReceiverPacketLossRatio(); 139 return bwe_receiver_->GlobalReceiverPacketLossRatio();
140 } 140 }
141 141
142 Stats<double> PacketReceiver::GetDelayStats() const { 142 Stats<double> PacketReceiver::GetDelayStats() const {
143 return delay_stats_; 143 return delay_stats_;
144 } 144 }
145 } // namespace bwe 145 } // namespace bwe
146 } // namespace testing 146 } // namespace testing
147 } // namespace webrtc 147 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698