Add Precache.CacheStatus.NonPrefetch.FromPrecache UMA |
|||||||||||
Issue descriptionAdd 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.
,
Oct 10 2016
,
Oct 10 2016
[Automated comment] Less than 2 weeks to go before stable on M54, manual review required.
,
Oct 10 2016
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.
,
Oct 11 2016
Sorry, too late.
,
Oct 13 2016
,
Oct 13 2016
,
Oct 13 2016
Your change meets the bar and is auto-approved for M55 (branch: 2883)
,
Oct 13 2016
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
,
Oct 13 2016
,
Oct 27 2016
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
,
Nov 4 2016
[Automated comment] removing mislabelled merge-merged-2840 |
|||||||||||
►
Sign in to add a comment |
|||||||||||
Comment 1 by bugdroid1@chromium.org
, Oct 7 2016