summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-13 23:17:05 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-13 23:17:05 +0000
commit6aad1f60823a87c2235f4dc1ebe5d812370b2d08 (patch)
treea1bfe24e37a7b15033adf7c8cf49b7f7dfc71734 /net
parent0ef57bdc2eb20c1728b6ea8db70679b4957619c9 (diff)
downloadchromium_src-6aad1f60823a87c2235f4dc1ebe5d812370b2d08.zip
chromium_src-6aad1f60823a87c2235f4dc1ebe5d812370b2d08.tar.gz
chromium_src-6aad1f60823a87c2235f4dc1ebe5d812370b2d08.tar.bz2
Add a histogram for SpdyConnectionLatency.
BUG=none TEST=none Review URL: http://codereview.chromium.org/543040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/http/http_network_transaction.cc18
1 files changed, 12 insertions, 6 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index d3fed93..6d62d30 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -822,16 +822,22 @@ int HttpNetworkTransaction::DoSSLConnectComplete(int result) {
base::TimeDelta connect_duration =
base::TimeTicks::Now() - ssl_connect_start_time_;
- UMA_HISTOGRAM_CLIPPED_TIMES("Net.SSL_Connection_Latency",
- connect_duration,
- base::TimeDelta::FromMilliseconds(1),
- base::TimeDelta::FromMinutes(10),
- 100);
-
if (use_spdy) {
+ UMA_HISTOGRAM_CUSTOM_TIMES("Net.SpdyConnectionLatency",
+ connect_duration,
+ base::TimeDelta::FromMilliseconds(1),
+ base::TimeDelta::FromMinutes(10),
+ 100);
+
UpdateConnectionTypeHistograms(CONNECTION_SPDY, true);
next_state_ = STATE_SPDY_SEND_REQUEST;
} else {
+ UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency",
+ connect_duration,
+ base::TimeDelta::FromMilliseconds(1),
+ base::TimeDelta::FromMinutes(10),
+ 100);
+
next_state_ = STATE_SEND_REQUEST;
}
} else if (result == ERR_SSL_CLIENT_AUTH_CERT_NEEDED) {