diff --git a/pc/peer_connection.cc b/pc/peer_connection.cc index ad83a8781a..eb153eb58c 100644 --- a/pc/peer_connection.cc +++ b/pc/peer_connection.cc @@ -652,6 +652,10 @@ RTCError PeerConnection::Initialize( }, delay_ms); + // Record the number of configured ICE servers for all connections. + RTC_HISTOGRAM_COUNTS_LINEAR("WebRTC.PeerConnection.IceServers.Configured", + configuration_.servers.size(), 0, 31, 32); + return RTCError::OK(); } @@ -1896,6 +1900,10 @@ void PeerConnection::SetConnectionState( } RTC_HISTOGRAM_ENUMERATION("WebRTC.PeerConnection.ProvisionalAnswer", pranswer, kProvisionalAnswerMax); + + // Record the number of configured ICE servers for connected connections. + RTC_HISTOGRAM_COUNTS_LINEAR("WebRTC.PeerConnection.IceServers.Connected", + configuration_.servers.size(), 0, 31, 32); } }