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

Unified Diff: webrtc/voice_engine/channel.cc

Issue 2666533002: Add probe logging to RtcEventLog. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/voice_engine/channel.cc
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index 2791f7f8b4ed555ed9da3e8d3f45ab6b9fa18171..a7f337a13f67dd87d6d36c5b6e9c5d5af7b167d2 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -108,9 +108,19 @@ class RtcEventLogProxy final : public webrtc::RtcEventLog {
webrtc::MediaType media_type,
const uint8_t* header,
size_t packet_length) override {
+ LogRtpHeader(direction, media_type, header, packet_length,
+ PacketInfo::kNotAProbe);
+ }
+
+ void LogRtpHeader(webrtc::PacketDirection direction,
+ webrtc::MediaType media_type,
+ const uint8_t* header,
+ size_t packet_length,
+ int probe_cluster_id) override {
rtc::CritScope lock(&crit_);
if (event_log_) {
- event_log_->LogRtpHeader(direction, media_type, header, packet_length);
+ event_log_->LogRtpHeader(direction, media_type, header, packet_length,
+ probe_cluster_id);
}
}
@@ -148,6 +158,32 @@ class RtcEventLogProxy final : public webrtc::RtcEventLog {
}
}
+ void LogProbeClusterCreated(int id,
+ int bitrate_bps,
+ int min_probes,
+ int min_bytes) override {
+ rtc::CritScope lock(&crit_);
+ if (event_log_) {
+ event_log_->LogProbeClusterCreated(id, bitrate_bps, min_probes,
+ min_bytes);
+ }
+ };
+
+ void LogProbeResultSuccess(int id, int bitrate_bps) override {
+ rtc::CritScope lock(&crit_);
+ if (event_log_) {
+ event_log_->LogProbeResultSuccess(id, bitrate_bps);
+ }
+ };
+
+ void LogProbeResultFailure(int id,
+ ProbeFailureReason failure_reason) override {
+ rtc::CritScope lock(&crit_);
+ if (event_log_) {
+ event_log_->LogProbeResultFailure(id, failure_reason);
+ }
+ };
+
void SetEventLog(RtcEventLog* event_log) {
rtc::CritScope lock(&crit_);
event_log_ = event_log;

Powered by Google App Engine
This is Rietveld 408576698