diff options
-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. |