summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-30 20:02:07 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-30 20:02:07 +0000
commit808f640d6ef38a1d879ecfeff30a1c0aae6f9427 (patch)
tree2452f380ab609a5bb9e11c3bd7beec16f25a5648 /net
parent744c69e22d6d8da9203a0d13c1b33f91ac2a09f9 (diff)
downloadchromium_src-808f640d6ef38a1d879ecfeff30a1c0aae6f9427.zip
chromium_src-808f640d6ef38a1d879ecfeff30a1c0aae6f9427.tar.gz
chromium_src-808f640d6ef38a1d879ecfeff30a1c0aae6f9427.tar.bz2
Add histogram of total latency when we're not re-using a socket
Trying to remove noise from latency experiment involving DNS prefetching. r=wtc Review URL: http://codereview.chromium.org/57016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/http/http_network_transaction.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 5d92bc3..c549cb3 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -968,6 +968,13 @@ void HttpNetworkTransaction::LogTransactionMetrics() const {
"Net.Transaction_Latency_Total_Under_10", "DnsImpact").data(),
total_duration, base::TimeDelta::FromMilliseconds(1),
base::TimeDelta::FromMinutes(10), 100);
+ if (!reused_socket_) {
+ UMA_HISTOGRAM_CLIPPED_TIMES(FieldTrial::MakeName(
+ "Net.Transaction_Latency_Total_New_Connection_Under_10",
+ "DnsImpact").data(),
+ total_duration, base::TimeDelta::FromMilliseconds(1),
+ base::TimeDelta::FromMinutes(10), 100);
+ }
if (!duration.InMilliseconds())
return;
UMA_HISTOGRAM_COUNTS("Net.Transaction_Bandwidth",