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

Unified Diff: chrome/browser/browser_main.cc

Issue 1088002: 2 experiments: DNS prefetch limit concurrency: TCP split a packet (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | chrome/browser/net/dns_global.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 42146)
+++ chrome/browser/browser_main.cc (working copy)
@@ -417,9 +417,23 @@
SystemMonitor system_monitor;
HighResolutionTimerManager hi_res_timer_manager;
- // Initialize statistical testing infrastructure.
+ // Initialize statistical testing infrastructure for entire browser.
FieldTrialList field_trial;
+ // Set up a field trial to see if splitting the first transmitted packet helps
+ // with latency.
+ {
+ FieldTrial::Probability kDivisor = 100;
+ FieldTrial* trial = new FieldTrial("PacketSplit", kDivisor);
+ // For each option (i.e., non-default), we have a fixed probability.
+ FieldTrial::Probability kProbabilityPerGroup = 10; // 10% probability.
+ int split = trial->AppendGroup("_first_packet_split", kProbabilityPerGroup);
+ DCHECK_EQ(split, 0);
+ int intact = trial->AppendGroup("_first_packet_intact",
+ FieldTrial::kAllRemainingProbability);
+ DCHECK_EQ(intact, 1);
+ }
+
std::wstring app_name = chrome::kBrowserAppName;
std::string thread_name_string = WideToASCII(app_name + L"_BrowserMain");
« no previous file with comments | « no previous file | chrome/browser/net/dns_global.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698