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

Issue 2146023003: Add UMA Precache.Freshness.Prefetch (Closed)

Created:
4 years, 5 months ago by jamartin
Modified:
4 years, 4 months ago
Reviewers:
bengr, rkaplow, twifkak
CC:
chromium-reviews, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, wifiprefetch-reviews_google.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA Precache.Freshness.Prefetch and include validated resources. - Precache.Freshness.Prefetch measures the freshness (in seconds) of all the prefetched resources in seconds since the moment they were downloaded. - Expose HttpResponseInfo through the call chain of UpdatePrecacheMetricsAndState Precache.Freshness.Prefetch will be useful as a comparison to Precache.TimeSinceLastPrecache. BUG=619211 Committed: https://crrev.com/8e1bdb68cb6d13fc258a7498948a3c590929606a Cr-Commit-Position: refs/heads/master@{#407974}

Patch Set 1 #

Patch Set 2 : Fix precache_util.cc #

Patch Set 3 : Typo #

Total comments: 9

Patch Set 4 : Added Precache.Saved.Freshness and changed the range to 5 min - 1 year #

Patch Set 5 : Doc changes #

Total comments: 4

Patch Set 6 : Changed the histogram summary #

Total comments: 10

Patch Set 7 : gclient sync #

Patch Set 8 : bengr's comments; Forward declare and no default args #

Patch Set 9 : gclient sync #

Total comments: 6

Patch Set 10 : Added missing includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -81 lines) Patch
M chrome/browser/precache/precache_util.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -3 lines 0 comments Download
M components/precache/content/precache_manager.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -4 lines 0 comments Download
M components/precache/content/precache_manager.cc View 1 2 3 4 5 6 7 8 5 chunks +9 lines, -11 lines 0 comments Download
M components/precache/content/precache_manager_unittest.cc View 1 2 3 4 5 6 7 8 13 chunks +40 lines, -29 lines 0 comments Download
M components/precache/core/precache_database.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -3 lines 0 comments Download
M components/precache/core/precache_database.cc View 1 2 3 4 5 6 7 8 9 7 chunks +36 lines, -10 lines 0 comments Download
M components/precache/core/precache_database_unittest.cc View 1 2 3 4 5 6 7 8 9 12 chunks +64 lines, -18 lines 0 comments Download
M components/precache/core/precache_url_table.h View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (26 generated)
jamartin
@bengr: Please approve for precache_util.cc @rkaplow: Please review histograms.xml
4 years, 5 months ago (2016-07-14 14:31:56 UTC) #4
jamartin
@gavinp: Please review the change in DEPS on net/http
4 years, 5 months ago (2016-07-14 15:19:49 UTC) #6
rkaplow
lgtm
4 years, 5 months ago (2016-07-14 15:34:13 UTC) #7
twifkak
https://codereview.chromium.org/2146023003/diff/40001/components/precache/core/precache_database.cc File components/precache/core/precache_database.cc (right): https://codereview.chromium.org/2146023003/diff/40001/components/precache/core/precache_database.cc#newcode115 components/precache/core/precache_database.cc:115: UMA_HISTOGRAM_CUSTOM_COUNTS( Why not UMA_HISTOGRAM_CUSTOM_TIMES? https://codereview.chromium.org/2146023003/diff/40001/components/precache/core/precache_database.cc#newcode120 components/precache/core/precache_database.cc:120: base::TimeDelta::FromHours(36).InSeconds() /* max ...
4 years, 5 months ago (2016-07-18 04:30:35 UTC) #8
jamartin
PTAL. BTW, please note that the freshness can be 0 in, for instance, the cases ...
4 years, 5 months ago (2016-07-18 16:29:43 UTC) #9
jamartin
@rkaplow: Please note I've added another histogram since the time you LGTM'ed.
4 years, 5 months ago (2016-07-18 16:30:55 UTC) #10
twifkak
On 2016/07/18 16:29:43, jamartin wrote: > BTW, please note that the freshness can be 0 ...
4 years, 5 months ago (2016-07-18 23:50:17 UTC) #11
twifkak
lgtm https://codereview.chromium.org/2146023003/diff/40001/components/precache/core/precache_database.cc File components/precache/core/precache_database.cc (right): https://codereview.chromium.org/2146023003/diff/40001/components/precache/core/precache_database.cc#newcode115 components/precache/core/precache_database.cc:115: UMA_HISTOGRAM_CUSTOM_COUNTS( On 2016/07/18 16:29:43, jamartin wrote: > On ...
4 years, 5 months ago (2016-07-18 23:50:44 UTC) #12
jamartin
@rkaplow: I've added a histogram and changed their summary, in case you want to take ...
4 years, 5 months ago (2016-07-19 16:14:17 UTC) #15
bengr
https://codereview.chromium.org/2146023003/diff/100001/chrome/browser/precache/precache_util.cc File chrome/browser/precache/precache_util.cc (right): https://codereview.chromium.org/2146023003/diff/100001/chrome/browser/precache/precache_util.cc#newcode15 chrome/browser/precache/precache_util.cc:15: #include "net/http/http_response_info.h" You should be able to forward declare ...
4 years, 5 months ago (2016-07-21 00:03:27 UTC) #18
jamartin
PTAL. https://codereview.chromium.org/2146023003/diff/100001/chrome/browser/precache/precache_util.cc File chrome/browser/precache/precache_util.cc (right): https://codereview.chromium.org/2146023003/diff/100001/chrome/browser/precache/precache_util.cc#newcode15 chrome/browser/precache/precache_util.cc:15: #include "net/http/http_response_info.h" On 2016/07/21 00:03:27, bengr wrote: > ...
4 years, 5 months ago (2016-07-25 23:23:07 UTC) #27
bengr
lgtm, but please address these last comments on includes and forward declarations. https://codereview.chromium.org/2146023003/diff/160001/chrome/browser/precache/precache_util.h File chrome/browser/precache/precache_util.h ...
4 years, 4 months ago (2016-07-26 17:29:11 UTC) #30
jamartin
Thanks for the review. I'll request submission once git cl try finishes. https://codereview.chromium.org/2146023003/diff/160001/chrome/browser/precache/precache_util.h File chrome/browser/precache/precache_util.h ...
4 years, 4 months ago (2016-07-26 19:56:22 UTC) #33
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/2146023003/180001
4 years, 4 months ago (2016-07-26 23:39:25 UTC) #38
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 4 months ago (2016-07-26 23:44:18 UTC) #40
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 23:49:28 UTC) #42
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/8e1bdb68cb6d13fc258a7498948a3c590929606a
Cr-Commit-Position: refs/heads/master@{#407974}

Powered by Google App Engine
This is Rietveld 408576698