summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_transaction.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 17:46:16 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 17:46:16 +0000
commit75e287db9508753ada184ee4252b679912f6f085 (patch)
tree34a7c6c90927d9ec9ba251b6c427d2c72a4931da /net/http/http_network_transaction.cc
parent4b77038ebde3dadd45939b171b181b901544236e (diff)
downloadchromium_src-75e287db9508753ada184ee4252b679912f6f085.zip
chromium_src-75e287db9508753ada184ee4252b679912f6f085.tar.gz
chromium_src-75e287db9508753ada184ee4252b679912f6f085.tar.bz2
Add a histogram to measure the number of idle sockets when a TCP connection is established.
Review URL: http://codereview.chromium.org/99205 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_transaction.cc')
-rw-r--r--net/http/http_network_transaction.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 3c84234..f4fefcc4 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -1033,6 +1033,12 @@ void HttpNetworkTransaction::LogTCPConnectedMetrics() const {
host_resolution_and_tcp_connection_latency,
base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
100);
+
+ UMA_HISTOGRAM_COUNTS_100(
+ FieldTrial::MakeName(
+ "Net.TCP_Connection_Idle_Sockets", "DnsImpact").data(),
+ session_->connection_pool()->IdleSocketCountInGroup(
+ connection_.group_name()));
}
void HttpNetworkTransaction::LogTransactionConnectedMetrics() const {