diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-04 14:44:39 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-04 14:44:39 +0000 |
commit | 09a40196dc0cdd4c9315fff4d08d5e5934dd25e0 (patch) | |
tree | 002ee8be9cd3eb2b78d7a0b8f1776a27b08c6e08 /net/socket | |
parent | f66524fad1ebd735cf3358e1b7242f37e3253a7f (diff) | |
download | chromium_src-09a40196dc0cdd4c9315fff4d08d5e5934dd25e0.zip chromium_src-09a40196dc0cdd4c9315fff4d08d5e5934dd25e0.tar.gz chromium_src-09a40196dc0cdd4c9315fff4d08d5e5934dd25e0.tar.bz2 |
net: measure HTTPS connect times to (*.)google.com
We want to see how bad it really is. (Or, rather, I want to show that it's not
so bad.)
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6760035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket')
-rw-r--r-- | net/socket/ssl_client_socket_pool.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/socket/ssl_client_socket_pool.cc b/net/socket/ssl_client_socket_pool.cc index 8d470d2..2004286 100644 --- a/net/socket/ssl_client_socket_pool.cc +++ b/net/socket/ssl_client_socket_pool.cc @@ -333,6 +333,17 @@ int SSLConnectJob::DoSSLConnectComplete(int result) { base::TimeDelta::FromMinutes(10), 100); + const std::string& host = params_->host_and_port().host(); + bool is_google = host == "google.com" || + host.rfind(".google.com") == host.size() - 11; + if (is_google) { + UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency_Google", + connect_duration, + base::TimeDelta::FromMilliseconds(1), + base::TimeDelta::FromMinutes(10), + 100); + } + static bool false_start_trial( base::FieldTrialList::Find("SSLFalseStart") && !base::FieldTrialList::Find("SSLFalseStart")->group_name().empty()); |