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

Issue 2005753004: Record the number of freshness periods since a stale HttpCache entry was last used (Closed)

Created:
4 years, 7 months ago by jkarlin
Modified:
4 years, 7 months ago
Reviewers:
gavinp, rkaplow
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, 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

Record the number of freshness periods since a stale HttpCache entry was last used This metrics records the number of freshness periods that have elapsed since a stale entry was last used. This will help us to determine the right time to prefresh resources (e.g., prefresh on cache hit if the entry's age is > 50% of freshness). BUG=614355 Committed: https://crrev.com/91ae3602104125b4afca4f76d2b2841fda80718f Cr-Commit-Position: refs/heads/master@{#395885}

Patch Set 1 #

Patch Set 2 : DCHECKs #

Total comments: 5

Patch Set 3 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -7 lines) Patch
M net/http/http_cache_transaction.h View 1 chunk +2 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 chunks +23 lines, -5 lines 0 comments Download
M net/http/mock_http_cache.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
jkarlin
gavinp@ PTAL at everything, thanks! rkaplow@ PTAL at histograms.xml, thanks!
4 years, 7 months ago (2016-05-24 13:34:14 UTC) #2
rkaplow
https://codereview.chromium.org/2005753004/diff/20001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/2005753004/diff/20001/net/http/http_cache_transaction.cc#newcode2805 net/http/http_cache_transaction.cc:2805: (time_since_use * 1000) / stale_entry_freshness_); instead of doing this, ...
4 years, 7 months ago (2016-05-24 17:43:26 UTC) #3
jkarlin
Thanks! https://codereview.chromium.org/2005753004/diff/20001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/2005753004/diff/20001/net/http/http_cache_transaction.cc#newcode2805 net/http/http_cache_transaction.cc:2805: (time_since_use * 1000) / stale_entry_freshness_); On 2016/05/24 17:43:25, ...
4 years, 7 months ago (2016-05-24 17:57:40 UTC) #4
jkarlin
https://codereview.chromium.org/2005753004/diff/20001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/2005753004/diff/20001/net/http/http_cache_transaction.cc#newcode2805 net/http/http_cache_transaction.cc:2805: (time_since_use * 1000) / stale_entry_freshness_); On 2016/05/24 17:57:40, jkarlin ...
4 years, 7 months ago (2016-05-24 18:38:30 UTC) #5
rkaplow
lgtm right, ok. makes sense, thanks for clarifying
4 years, 7 months ago (2016-05-24 18:40:12 UTC) #6
jkarlin
Thanks. gavinp@ PTAL!
4 years, 7 months ago (2016-05-25 12:51:43 UTC) #7
gavinp
lgtm
4 years, 7 months ago (2016-05-25 13:52:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2005753004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2005753004/40001
4 years, 7 months ago (2016-05-25 14:02:24 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-25 14:05:50 UTC) #11
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 14:07:20 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/91ae3602104125b4afca4f76d2b2841fda80718f
Cr-Commit-Position: refs/heads/master@{#395885}

Powered by Google App Engine
This is Rietveld 408576698