summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 01:01:11 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 01:01:11 +0000
commitb01998a811ed26bee97b9fb51358235af54a53ac (patch)
treeda63082302fd538d4627fd6e342cebf6d9350978 /net
parent56577a34aa7e5b9f7715f58a7918d7565b1f4343 (diff)
downloadchromium_src-b01998a811ed26bee97b9fb51358235af54a53ac.zip
chromium_src-b01998a811ed26bee97b9fb51358235af54a53ac.tar.gz
chromium_src-b01998a811ed26bee97b9fb51358235af54a53ac.tar.bz2
Add histogram for connection times for new connections
The existing histogram appears ot have too much "noise" introduced by including existing connections. The goal is to quantify impact of DNS prefetching via an experiment, and this should produce more focused info for that FieldTrial. r=willchan Review URL: http://codereview.chromium.org/90005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/http/http_network_transaction.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 654eb6a..0db4315 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -984,6 +984,14 @@ void HttpNetworkTransaction::LogTransactionConnectedMetrics() const {
total_duration,
base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
100);
+ if (!reused_socket_)
+ UMA_HISTOGRAM_CLIPPED_TIMES(
+ FieldTrial::MakeName(
+ "Net.Transaction_Connected_New",
+ "DnsImpact").data(),
+ total_duration,
+ base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
+ 100);
// Currently, non-zero priority requests are frame or sub-frame resource
// types. This will change when we also prioritize certain subresources like