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

Issue 2508933002: tools: Local tests for the speculative prefetch predictor. (Closed)

Created:
4 years, 1 month ago by Benoit L
Modified:
4 years ago
Reviewers:
pasko
CC:
chromium-reviews, shishir+watch_chromium.org, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tools: Local tests for the speculative prefetch predictor. Adds a tool to reset Chrome's state, push a predictor database to a device, and load a page after a prefetch, collecting loading metrics. This is a follow-up to crrev.com/2496563002. Also adds a way to only enable external prefetch requests in the predictor. BUG=655980 Committed: https://crrev.com/b65cb1a116e559085ec372ea2ea4891bd00b1181 Cr-Commit-Position: refs/heads/master@{#435270}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 26

Patch Set 3 : Address comments. #

Patch Set 4 : Rebase/ #

Total comments: 6

Patch Set 5 : Rebase on https://codereview.chromium.org/2522873002/ #

Patch Set 6 : . #

Total comments: 4

Patch Set 7 : Rebase. #

Total comments: 13

Patch Set 8 : Comments. #

Patch Set 9 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -37 lines) Patch
M tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py View 1 2 3 4 5 6 7 chunks +32 lines, -4 lines 0 comments Download
M tools/resource_prefetch_predictor/generate_database.py View 1 2 3 4 5 6 7 5 chunks +15 lines, -33 lines 0 comments Download
A tools/resource_prefetch_predictor/prefetch_benchmark.py View 1 2 3 4 5 6 7 8 1 chunk +122 lines, -0 lines 0 comments Download
A tools/resource_prefetch_predictor/prefetch_predictor_common.py View 1 2 3 4 5 6 7 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (21 generated)
Benoit L
4 years, 1 month ago (2016-11-16 16:52:17 UTC) #2
pasko
I could not follow what an 'external prefetch' is and from where it is plumbed ...
4 years, 1 month ago (2016-11-17 15:59:04 UTC) #7
Benoit L
https://codereview.chromium.org/2508933002/diff/20001/chrome/browser/predictors/resource_prefetch_common.cc File chrome/browser/predictors/resource_prefetch_common.cc (right): https://codereview.chromium.org/2508933002/diff/20001/chrome/browser/predictors/resource_prefetch_common.cc#newcode29 chrome/browser/predictors/resource_prefetch_common.cc:29: const int kUrlHostLearningMode = ResourcePrefetchPredictorConfig::URL_LEARNING | On 2016/11/17 15:59:04, ...
4 years, 1 month ago (2016-11-21 13:40:33 UTC) #8
pasko
ohh, it did not have these trace events in the first patch, and now introduced ...
4 years, 1 month ago (2016-11-21 17:33:03 UTC) #17
Benoit L
On 2016/11/21 17:33:03, pasko wrote: > ohh, it did not have these trace events in ...
4 years, 1 month ago (2016-11-22 17:20:21 UTC) #18
pasko
https://codereview.chromium.org/2508933002/diff/60001/chrome/browser/predictors/resource_prefetch_common.cc File chrome/browser/predictors/resource_prefetch_common.cc (right): https://codereview.chromium.org/2508933002/diff/60001/chrome/browser/predictors/resource_prefetch_common.cc#newcode84 chrome/browser/predictors/resource_prefetch_common.cc:84: config->mode |= kUrlHostLearningMode | kUrlHostPrefetchingMode; why setting kUrlHostPrefetchingMode bit ...
4 years ago (2016-11-24 19:31:16 UTC) #19
Benoit L
Split the CL and rebased. Thanks for the comments. PTAL. https://codereview.chromium.org/2508933002/diff/60001/chrome/browser/predictors/resource_prefetch_common.cc File chrome/browser/predictors/resource_prefetch_common.cc (right): https://codereview.chromium.org/2508933002/diff/60001/chrome/browser/predictors/resource_prefetch_common.cc#newcode88 ...
4 years ago (2016-11-30 12:08:27 UTC) #20
pasko
overall looks good, a few small suggestions and questions https://codereview.chromium.org/2508933002/diff/120001/tools/resource_prefetch_predictor/generate_database.py File tools/resource_prefetch_predictor/generate_database.py (right): https://codereview.chromium.org/2508933002/diff/120001/tools/resource_prefetch_predictor/generate_database.py#newcode32 tools/resource_prefetch_predictor/generate_database.py:32: ...
4 years ago (2016-11-30 12:53:46 UTC) #25
Benoit L
https://codereview.chromium.org/2508933002/diff/120001/tools/resource_prefetch_predictor/generate_database.py File tools/resource_prefetch_predictor/generate_database.py (right): https://codereview.chromium.org/2508933002/diff/120001/tools/resource_prefetch_predictor/generate_database.py#newcode32 tools/resource_prefetch_predictor/generate_database.py:32: import prefetch_predictor_common On 2016/11/30 12:53:46, pasko wrote: > why ...
4 years ago (2016-11-30 15:25:50 UTC) #26
pasko
lgtm, thank you https://codereview.chromium.org/2508933002/diff/120001/tools/resource_prefetch_predictor/prefetch_benchmark.py File tools/resource_prefetch_predictor/prefetch_benchmark.py (right): https://codereview.chromium.org/2508933002/diff/120001/tools/resource_prefetch_predictor/prefetch_benchmark.py#newcode92 tools/resource_prefetch_predictor/prefetch_benchmark.py:92: + ['--trace-startup', '--trace-startup-duration=20']) On 2016/11/30 15:25:50, ...
4 years ago (2016-11-30 15:32:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2508933002/160001
4 years ago (2016-11-30 15:47:39 UTC) #30
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-11-30 15:57:41 UTC) #32
commit-bot: I haz the power
4 years ago (2016-11-30 16:00:50 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/b65cb1a116e559085ec372ea2ea4891bd00b1181
Cr-Commit-Position: refs/heads/master@{#435270}

Powered by Google App Engine
This is Rietveld 408576698