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

Unified Diff: content/renderer/media/rtc_peer_connection_handler.h

Issue 600163004: Add two UMA counters for IPv4 and IPv6 local candidates gathered in WebRTC PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reset for ice restarts and also only counts first component of first m line. Created 6 years, 3 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: content/renderer/media/rtc_peer_connection_handler.h
diff --git a/content/renderer/media/rtc_peer_connection_handler.h b/content/renderer/media/rtc_peer_connection_handler.h
index 2a440f1e439040009d5699d5c0d76ec723e45025..11e60864c85122c0ae5e33e1d3a2ef9f3a8aa335 100644
--- a/content/renderer/media/rtc_peer_connection_handler.h
+++ b/content/renderer/media/rtc_peer_connection_handler.h
@@ -218,6 +218,10 @@ class CONTENT_EXPORT RTCPeerConnectionHandler
// Counter for a UMA stat reported at destruction time.
int num_data_channels_created_;
+ // Counter for number of IPv4 and IPv6 local candidates.
+ int num_local_candidates_ipv4_;
+ int num_local_candidates_ipv6_;
+
// |native_peer_connection_| is the libjingle native PeerConnection object.
scoped_refptr<webrtc::PeerConnectionInterface> native_peer_connection_;
@@ -227,6 +231,11 @@ class CONTENT_EXPORT RTCPeerConnectionHandler
scoped_refptr<webrtc::UMAObserver> uma_observer_;
base::TimeTicks ice_connection_checking_start_;
+ // |ice_gathering_current_state_| is the most recent ice gathering
+ // |state from OnIceGatheringChange()
+ webrtc::PeerConnectionInterface::IceGatheringState
+ ice_gathering_current_state_;
+
DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler);
};

Powered by Google App Engine
This is Rietveld 408576698