summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-11 10:34:43 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-11 10:34:43 +0000
commit1dac1041c1e44027b2393fde89e734d62dfa7bd5 (patch)
tree14a80bd1fe8e937a6d256792f5f52fda3eccd388 /chrome/renderer
parent5820d2f0458c851b18df616ef3aff80cb4f8dba4 (diff)
downloadchromium_src-1dac1041c1e44027b2393fde89e734d62dfa7bd5.zip
chromium_src-1dac1041c1e44027b2393fde89e734d62dfa7bd5.tar.gz
chromium_src-1dac1041c1e44027b2393fde89e734d62dfa7bd5.tar.bz2
Add some experiments for different policies on cwnd restore.
BUG=none TEST=self Review URL: http://codereview.chromium.org/5687002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68938 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/page_load_histograms.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/renderer/page_load_histograms.cc b/chrome/renderer/page_load_histograms.cc
index 0fccbd1..c62bbe6 100644
--- a/chrome/renderer/page_load_histograms.cc
+++ b/chrome/renderer/page_load_histograms.cc
@@ -666,6 +666,36 @@ void PageLoadHistograms::Dump(WebFrame* frame) {
}
}
+ // Record SpdyCwnd field trial results.
+ if (navigation_state->was_fetched_via_spdy()) {
+ switch (load_type) {
+ case NavigationState::LINK_LOAD_NORMAL:
+ PLT_HISTOGRAM(base::FieldTrial::MakeName(
+ "PLT.BeginToFinish_LinkLoadNormal.spdy.", "SpdyCwnd"),
+ begin_to_finish_all_loads);
+ PLT_HISTOGRAM(base::FieldTrial::MakeName(
+ "PLT.StartToFinish_LinkLoadNormal.spdy.", "SpdyCwnd"),
+ start_to_finish_all_loads);
+ PLT_HISTOGRAM(base::FieldTrial::MakeName(
+ "PLT.StartToCommit_LinkLoadNormal.spdy.", "SpdyCwnd"),
+ start_to_commit);
+ break;
+ case NavigationState::NORMAL_LOAD:
+ PLT_HISTOGRAM(base::FieldTrial::MakeName(
+ "PLT.BeginToFinish_NormalLoad.spdy.", "SpdyCwnd"),
+ begin_to_finish_all_loads);
+ PLT_HISTOGRAM(base::FieldTrial::MakeName(
+ "PLT.StartToFinish_NormalLoad.spdy.", "SpdyCwnd"),
+ start_to_finish_all_loads);
+ PLT_HISTOGRAM(base::FieldTrial::MakeName(
+ "PLT.StartToCommit_NormalLoad.spdy.", "SpdyCwnd"),
+ start_to_commit);
+ break;
+ default:
+ break;
+ }
+ }
+
// Record page load time and abandonment rates for proxy cases.
if (navigation_state->was_fetched_via_proxy()) {
if (scheme_type == URLPattern::SCHEME_HTTPS) {