Chromium Code Reviews| Index: net/http/http_network_transaction.cc |
| =================================================================== |
| --- net/http/http_network_transaction.cc (revision 24217) |
| +++ net/http/http_network_transaction.cc (working copy) |
| @@ -1249,13 +1249,26 @@ |
| 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( |
|
jar (doing other things)
2009/08/25 15:51:00
I'd suggest using UMA_HISTOGRAM_CUSTOM_TIMES. The
|
| + 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. |