diff --git a/talk/app/webrtc/statscollector.cc b/talk/app/webrtc/statscollector.cc index 6af1e16ad..9bcb429ba 100644 --- a/talk/app/webrtc/statscollector.cc +++ b/talk/app/webrtc/statscollector.cc @@ -127,6 +127,8 @@ const char StatsReport::kStatsValueNamePlisSent[] = "googPlisSent"; const char StatsReport::kStatsValueNamePacketsReceived[] = "packetsReceived"; const char StatsReport::kStatsValueNamePacketsSent[] = "packetsSent"; const char StatsReport::kStatsValueNamePacketsLost[] = "packetsLost"; +const char StatsReport::kStatsValueNamePreferredJitterBufferMs[] = + "googPreferredJitterBufferMs"; const char StatsReport::kStatsValueNameReadable[] = "googReadable"; const char StatsReport::kStatsValueNameRecvPacketGroupArrivalTimeDebug[] = "googReceivedPacketGroupArrivalTimeDebug"; @@ -256,6 +258,12 @@ void ExtractStats(const cricket::VoiceReceiverInfo& info, StatsReport* report) { info.bytes_rcvd); report->AddValue(StatsReport::kStatsValueNameJitterReceived, info.jitter_ms); + report->AddValue(StatsReport::kStatsValueNameJitterBufferMs, + info.jitter_buffer_ms); + report->AddValue(StatsReport::kStatsValueNamePreferredJitterBufferMs, + info.jitter_buffer_preferred_ms); + report->AddValue(StatsReport::kStatsValueNameCurrentDelayMs, + info.delay_estimate_ms); report->AddValue(StatsReport::kStatsValueNameExpandRate, talk_base::ToString(info.expand_rate)); report->AddValue(StatsReport::kStatsValueNamePacketsReceived, diff --git a/talk/app/webrtc/statstypes.h b/talk/app/webrtc/statstypes.h index c15dfaaed..abaf4e156 100644 --- a/talk/app/webrtc/statstypes.h +++ b/talk/app/webrtc/statstypes.h @@ -171,6 +171,7 @@ class StatsReport { static const char kStatsValueNameNacksSent[]; static const char kStatsValueNamePlisReceived[]; static const char kStatsValueNamePlisSent[]; + static const char kStatsValueNamePreferredJitterBufferMs[]; static const char kStatsValueNameRtt[]; static const char kStatsValueNameAvailableSendBandwidth[]; static const char kStatsValueNameAvailableReceiveBandwidth[];