summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 03:12:44 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 03:12:44 +0000
commitf797551c235f0217a26b0a428dab67092cf84307 (patch)
tree8cb920919833edd70c4bc7656e2706d4f3a2e9b9 /chrome/renderer
parent35bfe6bd973be4afd62d18645e16d8ac9606010b (diff)
downloadchromium_src-f797551c235f0217a26b0a428dab67092cf84307.zip
chromium_src-f797551c235f0217a26b0a428dab67092cf84307.tar.gz
chromium_src-f797551c235f0217a26b0a428dab67092cf84307.tar.bz2
Implement a read-size throttle within the TCP socket.
Add a field-group trial for testing it. BUG=none TEST=none Review URL: http://codereview.chromium.org/173259 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24211 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_view.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 7d2d9f7..442b929 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -3246,6 +3246,16 @@ void RenderView::DumpLoadHistograms() const {
finish - start, kBeginToFinishMin,
kBeginToFinishMax, kBeginToFinishBucketCount);
+ static bool use_async_tcp(FieldTrialList::Find("AsyncSlowStart") &&
+ !FieldTrialList::Find("AsyncSlowStart")->group_name().empty());
+ if (use_async_tcp) {
+ UMA_HISTOGRAM_CUSTOM_TIMES(
+ FieldTrial::MakeName("Renderer4.StartToFinish",
+ "AsyncSlowStart").data(),
+ finish - start, kBeginToFinishMin,
+ kBeginToFinishMax, kBeginToFinishBucketCount);
+ }
+
UMA_HISTOGRAM_MEDIUM_TIMES("Renderer4.CommitToFinish", finish - commit);
if (!first_paint.is_null()) {