Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(893)

Unified Diff: net/http/http_network_transaction.cc

Issue 174390: Add UMA Histogram for FieldTrial for Async Socket SlowStart... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698