New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 650773 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Oct 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature



Sign in to add a comment

Add Precache.CacheStatus.NonPrefetch.FromPrecache UMA

Project Member Reported by twif...@chromium.org, Sep 27 2016

Issue description

Add a version of Precache.CacheStatus.NonPrefetch but only for URLs we believe to have been fetched by PrecacheFetcher in the past. This gives us another avenue for comparing precache performance to normal cache performance.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 7 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/25783a2fecb69d613b1f3cfa9ea9e347b87887de

commit 25783a2fecb69d613b1f3cfa9ea9e347b87887de
Author: twifkak <twifkak@chromium.org>
Date: Fri Oct 07 17:11:46 2016

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 

Review-Url: https://codereview.chromium.org/2364873004
Cr-Commit-Position: refs/heads/master@{#423892}

[modify] https://crrev.com/25783a2fecb69d613b1f3cfa9ea9e347b87887de/components/precache/content/precache_manager_unittest.cc
[modify] https://crrev.com/25783a2fecb69d613b1f3cfa9ea9e347b87887de/components/precache/core/precache_database.cc
[modify] https://crrev.com/25783a2fecb69d613b1f3cfa9ea9e347b87887de/components/precache/core/precache_database_unittest.cc
[modify] https://crrev.com/25783a2fecb69d613b1f3cfa9ea9e347b87887de/components/precache/core/precache_url_table.cc
[modify] https://crrev.com/25783a2fecb69d613b1f3cfa9ea9e347b87887de/components/precache/core/precache_url_table.h
[modify] https://crrev.com/25783a2fecb69d613b1f3cfa9ea9e347b87887de/components/precache/core/precache_url_table_unittest.cc
[modify] https://crrev.com/25783a2fecb69d613b1f3cfa9ea9e347b87887de/tools/metrics/histograms/histograms.xml

Labels: Merge-Request-54

Comment 3 by dimu@chromium.org, Oct 10 2016

Labels: -Merge-Request-54 Merge-Review-54 Hotlist-Merge-Review
[Automated comment] Less than 2 weeks to go before stable on M54, manual review required.
For manual reviewer: This is not a security/privacy/crash fix; just a new UMA. Was suggesting it because it's a low-impact change, but no worries if you think it's too risky.
Labels: -Merge-Review-54 Merge-Rejected-54
Sorry, too late.
Labels: Merge-Request-55
Labels: -Hotlist-Merge-review

Comment 8 by dimu@chromium.org, Oct 13 2016

Labels: -Merge-Request-55 Merge-Approved-55 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M55 (branch: 2883)
Project Member

Comment 9 by bugdroid1@chromium.org, Oct 13 2016

Labels: -merge-approved-55 merge-merged-2883
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f3426a9beee6d0bdf664ece23c26e3d452c96123

commit f3426a9beee6d0bdf664ece23c26e3d452c96123
Author: Devin Mullins <twifkak@google.com>
Date: Thu Oct 13 22:28:25 2016

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 

Review-Url: https://codereview.chromium.org/2364873004
Cr-Commit-Position: refs/heads/master@{#423892}
(cherry picked from commit 25783a2fecb69d613b1f3cfa9ea9e347b87887de)

Review URL: https://codereview.chromium.org/2413423002 .

Cr-Commit-Position: refs/branch-heads/2883@{#98}
Cr-Branched-From: 614d31daee2f61b0180df403a8ad43f20b9f6dd7-refs/heads/master@{#423768}

[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/content/precache_manager_unittest.cc
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/core/precache_database.cc
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/core/precache_database_unittest.cc
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/core/precache_url_table.cc
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/core/precache_url_table.h
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/core/precache_url_table_unittest.cc
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/tools/metrics/histograms/histograms.xml

Status: Fixed (was: Started)
Project Member

Comment 11 by bugdroid1@chromium.org, Oct 27 2016

Labels: merge-merged-2840
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f3426a9beee6d0bdf664ece23c26e3d452c96123

commit f3426a9beee6d0bdf664ece23c26e3d452c96123
Author: Devin Mullins <twifkak@google.com>
Date: Thu Oct 13 22:28:25 2016

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 

Review-Url: https://codereview.chromium.org/2364873004
Cr-Commit-Position: refs/heads/master@{#423892}
(cherry picked from commit 25783a2fecb69d613b1f3cfa9ea9e347b87887de)

Review URL: https://codereview.chromium.org/2413423002 .

Cr-Commit-Position: refs/branch-heads/2883@{#98}
Cr-Branched-From: 614d31daee2f61b0180df403a8ad43f20b9f6dd7-refs/heads/master@{#423768}

[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/content/precache_manager_unittest.cc
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/core/precache_database.cc
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/core/precache_database_unittest.cc
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/core/precache_url_table.cc
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/core/precache_url_table.h
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/components/precache/core/precache_url_table_unittest.cc
[modify] https://crrev.com/f3426a9beee6d0bdf664ece23c26e3d452c96123/tools/metrics/histograms/histograms.xml

Comment 12 by dimu@google.com, Nov 4 2016

Labels: -merge-merged-2840
[Automated comment] removing mislabelled merge-merged-2840

Sign in to add a comment