OLD | NEW |
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 void PlotAllDynamics(); | 77 void PlotAllDynamics(); |
78 | 78 |
79 void UpdateTime(int64_t time_ms); | 79 void UpdateTime(int64_t time_ms); |
80 void UpdateThroughput(int64_t bitrate_kbps, size_t payload_size); | 80 void UpdateThroughput(int64_t bitrate_kbps, size_t payload_size); |
81 void UpdateDelay(int64_t delay_ms); | 81 void UpdateDelay(int64_t delay_ms); |
82 void UpdateLoss(float loss_ratio); | 82 void UpdateLoss(float loss_ratio); |
83 void UpdateObjective(); | 83 void UpdateObjective(); |
84 | 84 |
85 void PlotThroughputHistogram(const std::string& title, | 85 void PlotThroughputHistogram(const std::string& title, |
86 const std::string& bwe_name, | 86 const std::string& bwe_name, |
87 int num_flows, | 87 size_t num_flows, |
88 int64_t extra_offset_ms, | 88 int64_t extra_offset_ms, |
89 const std::string optimum_id); | 89 const std::string optimum_id); |
90 | 90 |
91 void PlotThroughputHistogram(const std::string& title, | 91 void PlotThroughputHistogram(const std::string& title, |
92 const std::string& bwe_name, | 92 const std::string& bwe_name, |
93 int num_flows, | 93 size_t num_flows, |
94 int64_t extra_offset_ms); | 94 int64_t extra_offset_ms); |
95 | 95 |
96 void PlotDelayHistogram(const std::string& title, | 96 void PlotDelayHistogram(const std::string& title, |
97 const std::string& bwe_name, | 97 const std::string& bwe_name, |
98 int num_flows, | 98 size_t num_flows, |
99 int64_t one_way_path_delay_ms); | 99 int64_t one_way_path_delay_ms); |
100 | 100 |
101 void PlotLossHistogram(const std::string& title, | 101 void PlotLossHistogram(const std::string& title, |
102 const std::string& bwe_name, | 102 const std::string& bwe_name, |
103 int num_flows, | 103 size_t num_flows, |
104 float global_loss_ratio); | 104 float global_loss_ratio); |
105 | 105 |
106 void PlotObjectiveHistogram(const std::string& title, | 106 void PlotObjectiveHistogram(const std::string& title, |
107 const std::string& bwe_name, | 107 const std::string& bwe_name, |
108 int num_flows); | 108 size_t num_flows); |
109 | 109 |
110 void set_start_computing_metrics_ms(int64_t start_computing_metrics_ms) { | 110 void set_start_computing_metrics_ms(int64_t start_computing_metrics_ms) { |
111 start_computing_metrics_ms_ = start_computing_metrics_ms; | 111 start_computing_metrics_ms_ = start_computing_metrics_ms; |
112 } | 112 } |
113 | 113 |
114 void set_plot_available_capacity(bool plot) { | 114 void set_plot_available_capacity(bool plot) { |
115 plot_information_[kTotalAvailable].plot = plot; | 115 plot_information_[kTotalAvailable].plot = plot; |
116 } | 116 } |
117 | 117 |
118 void PauseFlow(); // Plot zero. | 118 void PauseFlow(); // Plot zero. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 int64_t optimal_throughput_bits_; | 158 int64_t optimal_throughput_bits_; |
159 int64_t last_available_bitrate_per_flow_kbps_; | 159 int64_t last_available_bitrate_per_flow_kbps_; |
160 int64_t start_computing_metrics_ms_; | 160 int64_t start_computing_metrics_ms_; |
161 bool started_computing_metrics_; | 161 bool started_computing_metrics_; |
162 }; | 162 }; |
163 | 163 |
164 } // namespace bwe | 164 } // namespace bwe |
165 } // namespace testing | 165 } // namespace testing |
166 } // namespace webrtc | 166 } // namespace webrtc |
167 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_METRIC_RECORDER_H_ | 167 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_METRIC_RECORDER_H_ |
OLD | NEW |