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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include "base/scoped_ptr.h" 7 #include "base/scoped_ptr.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/field_trial.h" 9 #include "base/field_trial.h"
10 #include "base/histogram.h" 10 #include "base/histogram.h"
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 1242
1243 if (use_late_binding_histogram) { 1243 if (use_late_binding_histogram) {
1244 UMA_HISTOGRAM_CUSTOM_TIMES( 1244 UMA_HISTOGRAM_CUSTOM_TIMES(
1245 FieldTrial::MakeName("Net.Transaction_Connected_Under_10", 1245 FieldTrial::MakeName("Net.Transaction_Connected_Under_10",
1246 "SocketLateBinding").data(), 1246 "SocketLateBinding").data(),
1247 total_duration, 1247 total_duration,
1248 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), 1248 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
1249 100); 1249 100);
1250 } 1250 }
1251 1251
1252 if (!reused_socket_) 1252 if (!reused_socket_) {
1253 UMA_HISTOGRAM_CLIPPED_TIMES( 1253 UMA_HISTOGRAM_CLIPPED_TIMES(
1254 "Net.Transaction_Connected_New", 1254 "Net.Transaction_Connected_New",
1255 total_duration, 1255 total_duration,
1256 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), 1256 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
1257 100); 1257 100);
1258 1258
1259 // Also record for our field trial.
1260 static bool use_async_tcp(FieldTrialList::Find("AsyncSlowStart") &&
1261 !FieldTrialList::Find("AsyncSlowStart")->group_name().empty());
1262 if (use_async_tcp) {
1263 UMA_HISTOGRAM_CLIPPED_TIMES(
jar (doing other things) 2009/08/25 15:51:00 I'd suggest using UMA_HISTOGRAM_CUSTOM_TIMES. The
1264 FieldTrial::MakeName("Net.Transaction_Connected_New",
1265 "AsyncSlowStart").data(),
1266 total_duration,
1267 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
1268 100);
1269 }
1270 }
1271
1259 // Currently, non-zero priority requests are frame or sub-frame resource 1272 // Currently, non-zero priority requests are frame or sub-frame resource
1260 // types. This will change when we also prioritize certain subresources like 1273 // types. This will change when we also prioritize certain subresources like
1261 // css, js, etc. 1274 // css, js, etc.
1262 if (request_->priority) { 1275 if (request_->priority) {
1263 UMA_HISTOGRAM_CLIPPED_TIMES( 1276 UMA_HISTOGRAM_CLIPPED_TIMES(
1264 "Net.Priority_High_Latency", 1277 "Net.Priority_High_Latency",
1265 total_duration, 1278 total_duration,
1266 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), 1279 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
1267 100); 1280 100);
1268 } else { 1281 } else {
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 host_and_port = proxy_info_.proxy_server().host_and_port(); 1951 host_and_port = proxy_info_.proxy_server().host_and_port();
1939 } else { 1952 } else {
1940 DCHECK(target == HttpAuth::AUTH_SERVER); 1953 DCHECK(target == HttpAuth::AUTH_SERVER);
1941 host_and_port = GetHostAndPort(request_->url); 1954 host_and_port = GetHostAndPort(request_->url);
1942 } 1955 }
1943 auth_info->host_and_port = ASCIIToWide(host_and_port); 1956 auth_info->host_and_port = ASCIIToWide(host_and_port);
1944 response_.auth_challenge = auth_info; 1957 response_.auth_challenge = auth_info;
1945 } 1958 }
1946 1959
1947 } // namespace net 1960 } // namespace net
OLDNEW
« 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