| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 int min_probes, | 163 int min_probes, |
| 164 int min_bytes) = 0; | 164 int min_bytes) = 0; |
| 165 | 165 |
| 166 // Logs the result of a successful probing attempt. | 166 // Logs the result of a successful probing attempt. |
| 167 virtual void LogProbeResultSuccess(int id, int bitrate_bps) = 0; | 167 virtual void LogProbeResultSuccess(int id, int bitrate_bps) = 0; |
| 168 | 168 |
| 169 // Logs the result of an unsuccessful probing attempt. | 169 // Logs the result of an unsuccessful probing attempt. |
| 170 virtual void LogProbeResultFailure(int id, | 170 virtual void LogProbeResultFailure(int id, |
| 171 ProbeFailureReason failure_reason) = 0; | 171 ProbeFailureReason failure_reason) = 0; |
| 172 | 172 |
| 173 virtual void LogAckedBitrate(uint32_t bitrate_bps) = 0; |
| 174 |
| 175 virtual void LogAlrState(bool in_alr, uint32_t usage_bps) = 0; |
| 176 virtual void LogPacketQueueTime(uint32_t ssrc, int64_t time_ms) = 0; |
| 177 |
| 173 // Reads an RtcEventLog file and returns true when reading was successful. | 178 // Reads an RtcEventLog file and returns true when reading was successful. |
| 174 // The result is stored in the given EventStream object. | 179 // The result is stored in the given EventStream object. |
| 175 // The order of the events in the EventStream is implementation defined. | 180 // The order of the events in the EventStream is implementation defined. |
| 176 // The current implementation writes a LOG_START event, then the old | 181 // The current implementation writes a LOG_START event, then the old |
| 177 // configurations, then the remaining events in timestamp order and finally | 182 // configurations, then the remaining events in timestamp order and finally |
| 178 // a LOG_END event. However, this might change without further notice. | 183 // a LOG_END event. However, this might change without further notice. |
| 179 // TODO(terelius): Change result type to a vector? | 184 // TODO(terelius): Change result type to a vector? |
| 180 static bool ParseRtcEventLog(const std::string& file_name, | 185 static bool ParseRtcEventLog(const std::string& file_name, |
| 181 rtclog::EventStream* result); | 186 rtclog::EventStream* result); |
| 182 }; | 187 }; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 BandwidthUsage detector_state) override {} | 222 BandwidthUsage detector_state) override {} |
| 218 void LogAudioNetworkAdaptation( | 223 void LogAudioNetworkAdaptation( |
| 219 const AudioEncoderRuntimeConfig& config) override {} | 224 const AudioEncoderRuntimeConfig& config) override {} |
| 220 void LogProbeClusterCreated(int id, | 225 void LogProbeClusterCreated(int id, |
| 221 int bitrate_bps, | 226 int bitrate_bps, |
| 222 int min_probes, | 227 int min_probes, |
| 223 int min_bytes) override{}; | 228 int min_bytes) override{}; |
| 224 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; | 229 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; |
| 225 void LogProbeResultFailure(int id, | 230 void LogProbeResultFailure(int id, |
| 226 ProbeFailureReason failure_reason) override{}; | 231 ProbeFailureReason failure_reason) override{}; |
| 232 void LogAckedBitrate(uint32_t bitrate_bps) override{}; |
| 233 void LogAlrState(bool in_alr, uint32_t usage_bps) override{}; |
| 234 void LogPacketQueueTime(uint32_t ssrc, int64_t time_ms) override{}; |
| 227 }; | 235 }; |
| 228 | 236 |
| 229 } // namespace webrtc | 237 } // namespace webrtc |
| 230 | 238 |
| 231 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ | 239 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ |
| OLD | NEW |