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

Issue 2711473006: Add Precache.Fetch.MinWeight UMA. (Closed)

Created:
3 years, 10 months ago by twifkak
Modified:
3 years, 10 months ago
Reviewers:
bengr, jamartin, rkaplow
CC:
chromium-reviews, jam, darin-cc_chromium.org, wifiprefetch-reviews_google.com, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Precache.Fetch.MinWeight UMA. This collects the distribution of resource weights that are actually reached before hitting the byte caps. This helps us tune the value of PrecacheConfigurationSettings.min_weight. BUG=696035 Review-Url: https://codereview.chromium.org/2711473006 Cr-Commit-Position: refs/heads/master@{#453059} Committed: https://chromium.googlesource.com/chromium/src/+/5f9a48e44f1257972cb83947355c7298555ccc94

Patch Set 1 #

Total comments: 11

Patch Set 2 : Replace emplace with operator= and report 0 in edge case. #

Patch Set 3 : Track min_weight_fetched in unfinished_work, and add tests. #

Total comments: 12

Patch Set 4 : Rebase. #

Patch Set 5 : Comment clarifications. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -16 lines) Patch
M components/precache/core/precache_fetcher.cc View 1 2 3 4 5 chunks +24 lines, -10 lines 0 comments Download
M components/precache/core/precache_fetcher_unittest.cc View 1 2 3 4 8 chunks +29 lines, -6 lines 2 comments Download
M components/precache/core/proto/precache.proto View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M components/precache/core/proto/unfinished_work.proto View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 29 (10 generated)
twifkak
3 years, 10 months ago (2017-02-22 03:33:54 UTC) #2
twifkak
https://codereview.chromium.org/2711473006/diff/1/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2711473006/diff/1/components/precache/core/precache_fetcher.cc#newcode426 components/precache/core/precache_fetcher.cc:426: min_weight_fetched.value() * 1000); BTW, the bucket boundaries will look ...
3 years, 10 months ago (2017-02-22 18:20:00 UTC) #3
jamartin
https://codereview.chromium.org/2711473006/diff/1/components/precache/content/precache_manager.cc File components/precache/content/precache_manager.cc (right): https://codereview.chromium.org/2711473006/diff/1/components/precache/content/precache_manager.cc#newcode276 components/precache/content/precache_manager.cc:276: unfinished_work->resource_size(), base::nullopt); When does this case happen? When we ...
3 years, 10 months ago (2017-02-22 22:54:07 UTC) #4
jamartin
No tests?
3 years, 10 months ago (2017-02-22 22:55:28 UTC) #5
twifkak
3 years, 10 months ago (2017-02-23 00:01:13 UTC) #7
rkaplow
lgtm histogram lg https://codereview.chromium.org/2711473006/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2711473006/diff/1/tools/metrics/histograms/histograms.xml#newcode50635 tools/metrics/histograms/histograms.xml:50635: +<histogram name="Precache.Fetch.MinWeight" units="thousandths"> kind of an ...
3 years, 10 months ago (2017-02-23 04:02:14 UTC) #9
twifkak
I've held off on writing tests for patch 2 for a couple reasons: 1. I ...
3 years, 10 months ago (2017-02-23 23:28:42 UTC) #10
jamartin
Discussed offline. Summary: - No, or very few users, should reach the end of the ...
3 years, 10 months ago (2017-02-24 00:53:51 UTC) #11
twifkak
jamartin: PTAL. I added fields to track this value in unfinished work, which allows us ...
3 years, 10 months ago (2017-02-24 02:44:20 UTC) #12
bengr
Please file a bug and refer to it in this CL. It makes it much ...
3 years, 10 months ago (2017-02-24 20:54:28 UTC) #13
bengr
Add a bug ID. Otherwise lgtm. https://codereview.chromium.org/2711473006/diff/60001/components/precache/core/proto/precache.proto File components/precache/core/proto/precache.proto (right): https://codereview.chromium.org/2711473006/diff/60001/components/precache/core/proto/precache.proto#newcode25 components/precache/core/proto/precache.proto:25: // weight_ratio and ...
3 years, 10 months ago (2017-02-24 20:58:54 UTC) #14
jamartin
https://codereview.chromium.org/2711473006/diff/60001/components/precache/core/precache_fetcher_unittest.cc File components/precache/core/precache_fetcher_unittest.cc (right): https://codereview.chromium.org/2711473006/diff/60001/components/precache/core/precache_fetcher_unittest.cc#newcode1147 components/precache/core/precache_fetcher_unittest.cc:1147: EXPECT_EQ(kNumResources - 2, url_callback_.requested_urls().size()); If it is config (1), ...
3 years, 10 months ago (2017-02-24 21:23:29 UTC) #15
twifkak
https://codereview.chromium.org/2711473006/diff/60001/components/precache/core/precache_fetcher_unittest.cc File components/precache/core/precache_fetcher_unittest.cc (right): https://codereview.chromium.org/2711473006/diff/60001/components/precache/core/precache_fetcher_unittest.cc#newcode1147 components/precache/core/precache_fetcher_unittest.cc:1147: EXPECT_EQ(kNumResources - 2, url_callback_.requested_urls().size()); On 2017/02/24 21:23:29, jamartin wrote: ...
3 years, 10 months ago (2017-02-25 01:13:40 UTC) #17
jamartin
lgtm
3 years, 10 months ago (2017-02-25 02:12:10 UTC) #18
jamartin
lgtm
3 years, 10 months ago (2017-02-25 02:12:12 UTC) #19
jamartin
https://codereview.chromium.org/2711473006/diff/100001/components/precache/core/precache_fetcher_unittest.cc File components/precache/core/precache_fetcher_unittest.cc (right): https://codereview.chromium.org/2711473006/diff/100001/components/precache/core/precache_fetcher_unittest.cc#newcode1230 components/precache/core/precache_fetcher_unittest.cc:1230: // reason, we are seeing it fetch all but ...
3 years, 10 months ago (2017-02-25 02:12:47 UTC) #20
twifkak
Thanks for the reviews. I'll send to CQ as soon as my previous CL lands. ...
3 years, 10 months ago (2017-02-25 02:19:31 UTC) #21
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/2711473006/100001
3 years, 10 months ago (2017-02-25 02:55:29 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-25 03:49:44 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/5f9a48e44f1257972cb83947355c...

Powered by Google App Engine
This is Rietveld 408576698