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

Issue 2123813002: Report Precache.TimeSinceLastPrecache (Closed)

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

Description

Report Precache.TimeSinceLastPrecache This will provide the time (in minutes) between the last time a precache session was started and each of the URL fetches made by the user ever since. This would allow us to better correlate byte savings/PLT with how recently a precache happened. BUG=619211 Committed: https://crrev.com/a973a3cd260653c8747a3df4d0a97ca3b915579e Cr-Commit-Position: refs/heads/master@{#406624}

Patch Set 1 #

Patch Set 2 : Typos and minor changes #

Patch Set 3 : MaybePostFlush #

Total comments: 8

Patch Set 4 : Raj's comments #

Total comments: 7

Patch Set 5 : Fewer DB reads and reporting in seconds #

Patch Set 6 : Reporting ms but using UMA_HISTOGRAM_CUSTOM_TIMES #

Patch Set 7 : UMA_HISTOGRAM_CUSTOM_COUNTS for seconds since first minute #

Total comments: 15

Patch Set 8 : gclient sync #

Patch Set 9 : Twifkak's comments #

Total comments: 1

Patch Set 10 : gclient sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -0 lines) Patch
M components/precache.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M components/precache/content/precache_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M components/precache/content/precache_manager_unittest.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -0 lines 0 comments Download
M components/precache/core/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/precache/core/precache_database.h View 1 2 3 3 chunks +12 lines, -0 lines 0 comments Download
M components/precache/core/precache_database.cc View 1 2 3 4 5 6 7 8 4 chunks +46 lines, -0 lines 0 comments Download
M components/precache/core/precache_database_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +29 lines, -0 lines 0 comments Download
M components/precache/core/precache_session_table.h View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -0 lines 0 comments Download
M components/precache/core/precache_session_table.cc View 1 2 3 4 5 6 7 8 2 chunks +34 lines, -0 lines 0 comments Download
M components/precache/core/precache_session_table_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -0 lines 0 comments Download
A components/precache/core/proto/timestamp.proto View 1 chunk +17 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (6 generated)
jamartin
4 years, 5 months ago (2016-07-05 17:32:25 UTC) #2
Raj
https://codereview.chromium.org/2123813002/diff/40001/components/precache/core/precache_database.h File components/precache/core/precache_database.h (right): https://codereview.chromium.org/2123813002/diff/40001/components/precache/core/precache_database.h#newcode116 components/precache/core/precache_database.h:116: // Records the time since the last prefetch. /s/prefetch/precache ...
4 years, 5 months ago (2016-07-05 19:46:29 UTC) #4
jamartin
PTAL. https://codereview.chromium.org/2123813002/diff/40001/components/precache/core/precache_database.h File components/precache/core/precache_database.h (right): https://codereview.chromium.org/2123813002/diff/40001/components/precache/core/precache_database.h#newcode116 components/precache/core/precache_database.h:116: // Records the time since the last prefetch. ...
4 years, 5 months ago (2016-07-06 14:14:14 UTC) #5
jamartin
@rkaplow: Please take a look at histogram.xml for ownership approval
4 years, 5 months ago (2016-07-06 16:28:02 UTC) #7
Raj
lgtm % nits I am not owner of those files. So you would have to ...
4 years, 5 months ago (2016-07-06 17:16:46 UTC) #8
rkaplow
https://codereview.chromium.org/2123813002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2123813002/diff/60001/tools/metrics/histograms/histograms.xml#newcode42579 tools/metrics/histograms/histograms.xml:42579: +<histogram name="Precache.TimeSinceLastPrecache" units="minutes"> it looks like you're subtracting timestamps, ...
4 years, 5 months ago (2016-07-06 21:52:12 UTC) #9
jamartin
PTAL. https://codereview.chromium.org/2123813002/diff/60001/components/precache/core/precache_database.cc File components/precache/core/precache_database.cc (right): https://codereview.chromium.org/2123813002/diff/60001/components/precache/core/precache_database.cc#newcode32 components/precache/core/precache_database.cc:32: // A PrecacheDatabase can be constructed on any ...
4 years, 5 months ago (2016-07-07 12:12:36 UTC) #10
rkaplow
https://codereview.chromium.org/2123813002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2123813002/diff/60001/tools/metrics/histograms/histograms.xml#newcode42579 tools/metrics/histograms/histograms.xml:42579: +<histogram name="Precache.TimeSinceLastPrecache" units="minutes"> On 2016/07/07 12:12:36, jamartin wrote: > ...
4 years, 5 months ago (2016-07-07 15:01:35 UTC) #11
jamartin
On 2016/07/07 15:01:35, rkaplow wrote: > https://codereview.chromium.org/2123813002/diff/60001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/2123813002/diff/60001/tools/metrics/histograms/histograms.xml#newcode42579 > ...
4 years, 5 months ago (2016-07-07 21:58:22 UTC) #12
jamartin
On 2016/07/07 21:58:22, jamartin wrote: > On 2016/07/07 15:01:35, rkaplow wrote: > > > https://codereview.chromium.org/2123813002/diff/60001/tools/metrics/histograms/histograms.xml ...
4 years, 5 months ago (2016-07-08 09:08:10 UTC) #13
rkaplow
lgtm https://codereview.chromium.org/2123813002/diff/120001/components/precache/core/precache_database.cc File components/precache/core/precache_database.cc (right): https://codereview.chromium.org/2123813002/diff/120001/components/precache/core/precache_database.cc#newcode249 components/precache/core/precache_database.cc:249: kSecondsInMinute, kSecondsInDay, 100); not really obvious to me ...
4 years, 5 months ago (2016-07-08 14:37:59 UTC) #14
jamartin
Thanks. Waiting on twifkak@ for the final LGTM. https://codereview.chromium.org/2123813002/diff/120001/components/precache/core/precache_database.cc File components/precache/core/precache_database.cc (right): https://codereview.chromium.org/2123813002/diff/120001/components/precache/core/precache_database.cc#newcode249 components/precache/core/precache_database.cc:249: kSecondsInMinute, ...
4 years, 5 months ago (2016-07-08 14:52:49 UTC) #15
Raj
On 2016/07/08 14:52:49, jamartin wrote: > Thanks. Waiting on twifkak@ for the final LGTM. > ...
4 years, 5 months ago (2016-07-08 17:14:20 UTC) #16
twifkak
lgtm Sorry for the delay. Also, if you haven't yet and it's not too much ...
4 years, 5 months ago (2016-07-08 23:47:53 UTC) #17
jamartin
> Sorry for the delay. Also, if you haven't yet and it's not too much ...
4 years, 5 months ago (2016-07-12 14:17:35 UTC) #18
jamartin
[Forgot to publish my comment replies, please check my previous question about how to test ...
4 years, 5 months ago (2016-07-12 14:18:44 UTC) #19
twifkak
On 2016/07/12 14:17:35, jamartin wrote: > > Sorry for the delay. Also, if you haven't ...
4 years, 5 months ago (2016-07-16 00:39:33 UTC) #20
twifkak
lgtm https://codereview.chromium.org/2123813002/diff/120001/components/precache/core/precache_database.cc File components/precache/core/precache_database.cc (right): https://codereview.chromium.org/2123813002/diff/120001/components/precache/core/precache_database.cc#newcode249 components/precache/core/precache_database.cc:249: kSecondsInMinute, kSecondsInDay, 100); On 2016/07/12 14:18:44, jamartin wrote: ...
4 years, 5 months ago (2016-07-16 00:47:49 UTC) #21
twifkak
On 2016/07/16 00:39:33, twifkak wrote: > Haven't had the chance to test your change myself. ...
4 years, 5 months ago (2016-07-20 01:47:44 UTC) #22
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/2123813002/180001
4 years, 5 months ago (2016-07-20 17:36:07 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 5 months ago (2016-07-20 18:34:23 UTC) #26
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 18:34:31 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 18:36:51 UTC) #29
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/a973a3cd260653c8747a3df4d0a97ca3b915579e
Cr-Commit-Position: refs/heads/master@{#406624}

Powered by Google App Engine
This is Rietveld 408576698