diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 07:49:52 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 07:49:52 +0000 |
commit | 0310d43ae706b8fbee0e7cba3e36c29581f71454 (patch) | |
tree | 055796758804bc014a96ce06c473acf2f78305bb /net | |
parent | d0ea9a67eec3137940326bac3de97d4dfa459a08 (diff) | |
download | chromium_src-0310d43ae706b8fbee0e7cba3e36c29581f71454.zip chromium_src-0310d43ae706b8fbee0e7cba3e36c29581f71454.tar.gz chromium_src-0310d43ae706b8fbee0e7cba3e36c29581f71454.tar.bz2 |
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
Diffstat (limited to 'net')
-rw-r--r-- | net/http/http_network_transaction.cc | 15 |
1 files changed, 14 insertions, 1 deletions
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. |