From 0310d43ae706b8fbee0e7cba3e36c29581f71454 Mon Sep 17 00:00:00 2001 From: "mbelshe@google.com" Date: Tue, 25 Aug 2009 07:49:52 +0000 Subject: Add UMA Histogram for FieldTrial for Async Socket SlowStart algorithm to monitor the time between the connect and the first byte on a new connection. BUG=none TEST=none Review URL: http://codereview.chromium.org/174390 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24221 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_network_transaction.cc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'net') diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc index fd59c5f..7f5942e 100644 --- a/net/http/http_network_transaction.cc +++ b/net/http/http_network_transaction.cc @@ -1249,13 +1249,26 @@ void HttpNetworkTransaction::LogTransactionConnectedMetrics() const { 100); } - if (!reused_socket_) + if (!reused_socket_) { UMA_HISTOGRAM_CLIPPED_TIMES( "Net.Transaction_Connected_New", total_duration, base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), 100); + // Also record for our field trial. + static bool use_async_tcp(FieldTrialList::Find("AsyncSlowStart") && + !FieldTrialList::Find("AsyncSlowStart")->group_name().empty()); + if (use_async_tcp) { + UMA_HISTOGRAM_CLIPPED_TIMES( + FieldTrial::MakeName("Net.Transaction_Connected_New", + "AsyncSlowStart").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 // css, js, etc. -- cgit v1.1