summaryrefslogtreecommitdiffstats
path: root/net/socket
diff options
context:
space:
mode:
authorbolian@chromium.org <bolian@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-12 19:21:26 +0000
committerbolian@chromium.org <bolian@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-12 19:21:26 +0000
commit17ed3b87579b34bb4838a8a05619e43909875f92 (patch)
tree75961ef6f0bc299811e1ff11a7682dcf190d5191 /net/socket
parent8aca725a07359b4eac2cce24990268ff10a2c755 (diff)
downloadchromium_src-17ed3b87579b34bb4838a8a05619e43909875f92.zip
chromium_src-17ed3b87579b34bb4838a8a05619e43909875f92.tar.gz
chromium_src-17ed3b87579b34bb4838a8a05619e43909875f92.tar.bz2
UMA for Data Reduction Proxy connection latency
BUG=257163 Added UMA metrics Net.SpdySessions_DataReductionProxy and Net.SpdyConnectionLatency_2_DataReductionProxy for data reduction proxy. jar: tools/metrics/histograms/histograms.xml rtenneti: net/socket/ssl_client_socket_pool.cc, net/spdy/spdy_session.cc Review URL: https://chromiumcodereview.appspot.com/18083032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211438 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket')
-rw-r--r--net/socket/ssl_client_socket_pool.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/socket/ssl_client_socket_pool.cc b/net/socket/ssl_client_socket_pool.cc
index dc9f0dd..27e8eb8 100644
--- a/net/socket/ssl_client_socket_pool.cc
+++ b/net/socket/ssl_client_socket_pool.cc
@@ -330,6 +330,18 @@ int SSLConnectJob::DoSSLConnectComplete(int result) {
base::TimeDelta::FromMinutes(1),
100);
}
+#if defined(SPDY_PROXY_AUTH_ORIGIN)
+ bool using_data_reduction_proxy = params_->host_and_port().Equals(
+ HostPortPair::FromURL(GURL(SPDY_PROXY_AUTH_ORIGIN)));
+ if (using_data_reduction_proxy) {
+ UMA_HISTOGRAM_CUSTOM_TIMES(
+ "Net.SSL_Connection_Latency_DataReductionProxy",
+ connect_duration,
+ base::TimeDelta::FromMilliseconds(1),
+ base::TimeDelta::FromMinutes(1),
+ 100);
+ }
+#endif
UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency_2",
connect_duration,