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

Unified Diff: tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py

Issue 2652313002: predictors: Move the configuration of speculative prefetch to field trials. (Closed)
Patch Set: Address comments. Created 3 years, 11 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 | « chrome/common/chrome_switches.cc ('k') | tools/resource_prefetch_predictor/generate_test_data.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
diff --git a/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py b/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
index 1811c6dab30a48cb5662dab9ec8ff3006faeaea9..5d462172bc971321b2e4c64a1f9ebf4a7de28a66 100755
--- a/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
+++ b/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
@@ -187,6 +187,12 @@ def LoopOnDevice(device, configs, output_filename, wpr_archive_path=None,
'--force-fieldtrials=trial/group',
'--force-fieldtrial-params=trial.group:mode/no_state_prefetch',
'--enable-features="NoStatePrefetch<trial"'])
+ elif config['speculation_mode'] == 'speculative_prefetch':
+ # Speculative Prefetch is enabled through an experiment.
+ chrome_args.extend([
+ '--force-fieldtrials=trial/group',
+ '--force-fieldtrial-params=trial.group:mode/external-prefetching',
+ '--enable-features="SpeculativeResourcePrefetching<trial"'])
result = RunOnce(device, config['url'], config['warmup'],
config['speculation_mode'],
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | tools/resource_prefetch_predictor/generate_test_data.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698