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

Unified Diff: net/spdy/spdy_session.cc

Issue 560573002: Introduce new SPDY Version UMA histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Subtract kProtoSPDYMinimumVersion instead of using sparse histogram. 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
« no previous file with comments | « net/socket/next_proto.h ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index fc22ae4ea04ddfed5bd25decd2e7f59c5e557cc3..64fb84e4595f6df76a84d3de8dc7e2b68b44074b 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -719,7 +719,10 @@ void SpdySession::InitializeWithSocket(
enable_compression_));
buffered_spdy_framer_->set_visitor(this);
buffered_spdy_framer_->set_debug_visitor(this);
- UMA_HISTOGRAM_ENUMERATION("Net.SpdyVersion", protocol_, kProtoMaximumVersion);
+ UMA_HISTOGRAM_ENUMERATION(
+ "Net.SpdyVersion2",
+ protocol_ - kProtoSPDYMinimumVersion,
+ kProtoSPDYMaximumVersion - kProtoSPDYMinimumVersion + 1);
#if defined(SPDY_PROXY_AUTH_ORIGIN)
UMA_HISTOGRAM_BOOLEAN("Net.SpdySessions_DataReductionProxy",
host_port_pair().Equals(HostPortPair::FromURL(
« no previous file with comments | « net/socket/next_proto.h ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698