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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 int64_t plot_interval_ms; | 58 int64_t plot_interval_ms; |
59 }; | 59 }; |
60 | 60 |
61 class MetricRecorder { | 61 class MetricRecorder { |
62 public: | 62 public: |
63 MetricRecorder(const std::string algorithm_name, | 63 MetricRecorder(const std::string algorithm_name, |
64 int flow_id, | 64 int flow_id, |
65 PacketSender* packet_sender, | 65 PacketSender* packet_sender, |
66 LinkShare* link_share); | 66 LinkShare* link_share); |
67 | 67 |
68 void SetPlotInformation(const std::vector<std::string>& prefixes); | 68 void SetPlotInformation(const std::vector<std::string>& prefixes, |
| 69 bool plot_delay, |
| 70 bool plot_loss); |
69 | 71 |
70 template <typename T> | 72 template <typename T> |
71 void PlotLine(int windows_id, | 73 void PlotLine(int windows_id, |
72 const std::string& prefix, | 74 const std::string& prefix, |
73 int64_t time_ms, | 75 int64_t time_ms, |
74 T y); | 76 T y); |
75 | 77 |
76 void PlotDynamics(int metric); | 78 void PlotDynamics(int metric); |
77 void PlotAllDynamics(); | 79 void PlotAllDynamics(); |
78 | 80 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 int64_t optimal_throughput_bits_; | 160 int64_t optimal_throughput_bits_; |
159 int64_t last_available_bitrate_per_flow_kbps_; | 161 int64_t last_available_bitrate_per_flow_kbps_; |
160 int64_t start_computing_metrics_ms_; | 162 int64_t start_computing_metrics_ms_; |
161 bool started_computing_metrics_; | 163 bool started_computing_metrics_; |
162 }; | 164 }; |
163 | 165 |
164 } // namespace bwe | 166 } // namespace bwe |
165 } // namespace testing | 167 } // namespace testing |
166 } // namespace webrtc | 168 } // namespace webrtc |
167 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_METRIC_RECORDER_H_ | 169 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_METRIC_RECORDER_H_ |
OLD | NEW |