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

Issue 2364873004: Add Precache.CacheStatus.NonPrefetch.FromPrecache. (Closed)

Created:
4 years, 3 months ago by twifkak
Modified:
4 years, 2 months ago
CC:
chromium-reviews, wifiprefetch-reviews_google.com, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Precache.CacheStatus.NonPrefetch.FromPrecache. This UMA is like Precache.CacheStatus.NonPrefetch, but only for requests where the URL matches an unused entry in the precache_urls table -- that is, first requests for URLs retrieved as part of prefetching. Misses would be reported by this metric as a result of expiration or eviction. Changed PrecacheURLTable::Is*URL*() methods with varying WHERE clauses to PrecacheURLTable::GetURLInfo() and a PrecacheURLInfo struct containing the SELECTed columns. This allows us to report this metric not just for first requests for precached URLs (i.e. where is_precached = 1), but for all such requests. This should cause the metrics sampled to be weighted similarly to HttpCache.Pattern. BUG=650773 Committed: https://crrev.com/25783a2fecb69d613b1f3cfa9ea9e347b87887de Cr-Commit-Position: refs/heads/master@{#423892}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added braces around multiline if statement. #

Patch Set 3 : Unify Is*URL* methods into GetURLInfo and struct. #

Patch Set 4 : Rebase. #

Patch Set 5 : Move if guard to allow new UMA to report when !is_precached || was_used. #

Patch Set 6 : Fix PrecacheManagerTest failure. #

Patch Set 7 : Add const. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -31 lines) Patch
M components/precache/content/precache_manager_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/precache/core/precache_database.cc View 1 2 3 4 5 6 3 chunks +11 lines, -6 lines 0 comments Download
M components/precache/core/precache_database_unittest.cc View 4 chunks +8 lines, -0 lines 0 comments Download
M components/precache/core/precache_url_table.h View 1 2 2 chunks +19 lines, -5 lines 0 comments Download
M components/precache/core/precache_url_table.cc View 1 2 2 chunks +13 lines, -13 lines 0 comments Download
M components/precache/core/precache_url_table_unittest.cc View 1 2 2 chunks +26 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (19 generated)
twifkak
Raj/Jose: Does this make sense? Also see the note in my CL description. Sending this ...
4 years, 3 months ago (2016-09-23 22:59:11 UTC) #2
chromium-reviews
I won't be able to review this until this Tuesday. I'll delegate on Raj until ...
4 years, 3 months ago (2016-09-24 00:12:52 UTC) #3
chromium-reviews
So, if I understand correctly, you want to know HttpCache.Pattern for non-prefetch URLs that were ...
4 years, 3 months ago (2016-09-24 00:23:28 UTC) #4
Raj
lgtm https://codereview.chromium.org/2364873004/diff/1/components/precache/core/precache_database.cc File components/precache/core/precache_database.cc (right): https://codereview.chromium.org/2364873004/diff/1/components/precache/core/precache_database.cc#newcode259 components/precache/core/precache_database.cc:259: if (is_precached) nit: add the multiline statement inside ...
4 years, 2 months ago (2016-09-26 22:09:58 UTC) #5
twifkak
Raj: Did you take a look at the "Note to reviewers" in my commit description? ...
4 years, 2 months ago (2016-09-26 22:57:05 UTC) #7
gayane -on leave until 09-2017
lgtm
4 years, 2 months ago (2016-09-28 15:38:57 UTC) #10
Raj
On 2016/09/26 22:57:05, twifkak wrote: > Raj: Did you take a look at the "Note ...
4 years, 2 months ago (2016-09-28 18:21:36 UTC) #11
chromium-reviews
On Wed, Sep 28, 2016 at 11:21 AM, <rajendrant@chromium.org> wrote: > Sorry for delay. > ...
4 years, 2 months ago (2016-09-28 18:29:34 UTC) #12
Raj
On 2016/09/28 18:29:34, chromium-reviews wrote: > On Wed, Sep 28, 2016 at 11:21 AM, <mailto:rajendrant@chromium.org> ...
4 years, 2 months ago (2016-09-28 18:40:17 UTC) #13
chromium-reviews
OK, thanks, yup I think those should be ignored for the sake of this metric, ...
4 years, 2 months ago (2016-09-28 18:53:13 UTC) #14
twifkak
Raj: PTAL (patch sets 3 and 5) when you have the time. Thanks!
4 years, 2 months ago (2016-09-28 23:30:02 UTC) #16
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/2364873004/120001
4 years, 2 months ago (2016-10-04 21:58:57 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/273597)
4 years, 2 months ago (2016-10-04 22:12:19 UTC) #29
twifkak
jwd: Please review for tools/metrics/histograms/histograms.xml.
4 years, 2 months ago (2016-10-04 22:16:58 UTC) #31
Raj
On 2016/10/04 22:16:58, twifkak wrote: > jwd: Please review for tools/metrics/histograms/histograms.xml. lgtm
4 years, 2 months ago (2016-10-05 17:25:45 UTC) #32
twifkak
jwd: Friendly ping. I need an OWNERS lg for histograms.xml.
4 years, 2 months ago (2016-10-06 20:40:11 UTC) #33
jwd
lgtm
4 years, 2 months ago (2016-10-07 15:08:11 UTC) #34
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/2364873004/120001
4 years, 2 months ago (2016-10-07 16:07:00 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-07 17:12:11 UTC) #37
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 17:14:33 UTC) #39
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/25783a2fecb69d613b1f3cfa9ea9e347b87887de
Cr-Commit-Position: refs/heads/master@{#423892}

Powered by Google App Engine
This is Rietveld 408576698