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

Issue 2033093002: sandwich: Merge cache-validation.json and urls-for-resources.json tasks (Closed)

Created:
4 years, 6 months ago by gabadie
Modified:
4 years, 6 months ago
Reviewers:
pasko
CC:
chromium-reviews, mikecase+watch_chromium.org, gabadie+watch_chromium.org, jbudorick+watch_chromium.org, lizeb+watch-android-loading_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

sandwich: Merge cache-validation.json and urls-for-resources.json tasks Before in the NoState-Prefetch benchmark tasks graph, Sandwich had the common/cache-validation.json tasks as a leaf. But it could lead to issue when selecting final tasks with -e REGEX, and but forgetting to have the regex matching this important task as well as the subset of task the user initially wanted to run. This CL addresses this issue by merging the previous tasks common/cache-validation.json and common/urls-for-resources.json into a single common/patched-cache-validation.json tasks, and have all the benchmark subgraphs depending on them so we are sure to always run the cache validation at least once before the benchmark runs. This CL take this oportunity to output further statistics in the CSV related to the cache genration such as the number of sub-resources of an URL, the number of expected cached resources and the actual number of successfully cached resources, to identify at scale on many URLs from the CSVs potential issues the WPR patcher could still have on some webpages. Moreover, this CL take this change in the extract metrics task change as an opportunity to parse the fat loading trace JSON file only once per URL repeat row, in order to make theses tasks faster. BUG=582080 Committed: https://crrev.com/b20272f4bed6bf1775113960a2f2fbe70f74562d Cr-Commit-Position: refs/heads/master@{#398021}

Patch Set 1 #

Patch Set 2 : Fixes some doc string #

Patch Set 3 : Forgot PrefetchBenchmarkBuilder._PopulateCommonPipelines()'s docstring =D #

Total comments: 14

Patch Set 4 : Addresses Egor's comments #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -162 lines) Patch
M tools/android/loading/sandwich_metrics.py View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/android/loading/sandwich_prefetch.py View 1 2 3 13 chunks +172 lines, -160 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
gabadie
4 years, 6 months ago (2016-06-02 15:30:38 UTC) #3
pasko
generally looking good https://codereview.chromium.org/2033093002/diff/40001/tools/android/loading/sandwich_prefetch.py File tools/android/loading/sandwich_prefetch.py (right): https://codereview.chromium.org/2033093002/diff/40001/tools/android/loading/sandwich_prefetch.py#newcode5 tools/android/loading/sandwich_prefetch.py:5: import csv Let's add a top-level ...
4 years, 6 months ago (2016-06-03 17:13:46 UTC) #4
gabadie
https://codereview.chromium.org/2033093002/diff/40001/tools/android/loading/sandwich_prefetch.py File tools/android/loading/sandwich_prefetch.py (right): https://codereview.chromium.org/2033093002/diff/40001/tools/android/loading/sandwich_prefetch.py#newcode5 tools/android/loading/sandwich_prefetch.py:5: import csv On 2016/06/03 17:13:46, pasko wrote: > Let's ...
4 years, 6 months ago (2016-06-06 09:43:15 UTC) #5
pasko
lgtm
4 years, 6 months ago (2016-06-06 13:41:39 UTC) #6
gabadie
On 2016/06/06 13:41:39, pasko wrote: > lgtm Thanks! Landing.
4 years, 6 months ago (2016-06-06 13:51:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2033093002/80001
4 years, 6 months ago (2016-06-06 13:51:23 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-06 14:36:27 UTC) #11
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 14:38:13 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b20272f4bed6bf1775113960a2f2fbe70f74562d
Cr-Commit-Position: refs/heads/master@{#398021}

Powered by Google App Engine
This is Rietveld 408576698