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

Issue 1212773002: Add prefetch UMA metrics. (Closed)

Created:
5 years, 5 months ago by twifkak
Modified:
4 years, 7 months ago
Reviewers:
mef, bengr, Mark P
CC:
chromium-reviews, cbentzel+watch_chromium.org, 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

Add prefetch UMA metrics. Add Precache.Fetch.ResponseBytes and Precache.Fetch.PercentCompleted, recorded by PrecacheFetcher. Tested using HistogramTester. BUG=499532 Committed: https://crrev.com/0d97553cdb341dbdf4a40ac1c0dee17eb44e39af Cr-Commit-Position: refs/heads/master@{#338361}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix histograms and s/int64/int64_t/. #

Patch Set 3 : s/respective //. #

Total comments: 11

Patch Set 4 : Comment and style tweaks, and adding bengr as histogram owner. #

Patch Set 5 : Rebase. #

Patch Set 6 : Tweak percent_completed calculation. #

Total comments: 2

Patch Set 7 : Fix for CloudExternalDataManagerBaseTest.CacheCorruption. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -15 lines) Patch
M components/precache/core/precache_fetcher.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/precache/core/precache_fetcher.cc View 1 2 3 4 5 9 chunks +43 lines, -2 lines 0 comments Download
M components/precache/core/precache_fetcher_unittest.cc View 1 2 3 10 chunks +36 lines, -12 lines 0 comments Download
M net/url_request/test_url_fetcher_factory.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M net/url_request/test_url_fetcher_factory.cc View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
twifkak
mef@chromium.org: Please review changes in net/url_request/ bengr@chromium.org: Please review changes in components/precache/ jar@chromium.org: Please review ...
5 years, 5 months ago (2015-06-26 06:41:06 UTC) #2
twifkak
-jar, +mpearson, assuming that (doing other things) means (reassign) mpearson: Please review histograms.xml (at a ...
5 years, 5 months ago (2015-06-26 15:24:32 UTC) #4
twifkak
5 years, 5 months ago (2015-06-26 15:25:11 UTC) #6
Mark P
https://codereview.chromium.org/1212773002/diff/1/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1212773002/diff/1/components/precache/core/precache_fetcher.cc#newcode182 components/precache/core/precache_fetcher.cc:182: UMA_HISTOGRAM_COUNTS_100("Precache.Fetch.PercentCompleted", Why not UMA_HISTOGRAM_PERCENTAGE? https://codereview.chromium.org/1212773002/diff/1/components/precache/core/precache_fetcher.cc#newcode184 components/precache/core/precache_fetcher.cc:184: UMA_HISTOGRAM_COUNTS("Precache.Fetch.ResponseBytes", total_response_bytes_); This ...
5 years, 5 months ago (2015-06-26 17:03:37 UTC) #7
mef
https://codereview.chromium.org/1212773002/diff/1/net/url_request/test_url_fetcher_factory.h File net/url_request/test_url_fetcher_factory.h (right): https://codereview.chromium.org/1212773002/diff/1/net/url_request/test_url_fetcher_factory.h#newcode311 net/url_request/test_url_fetcher_factory.h:311: int64 response_bytes_; according to base/basictypes.h it should be int64_t ...
5 years, 5 months ago (2015-06-26 17:27:37 UTC) #8
twifkak
https://codereview.chromium.org/1212773002/diff/1/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1212773002/diff/1/components/precache/core/precache_fetcher.cc#newcode182 components/precache/core/precache_fetcher.cc:182: UMA_HISTOGRAM_COUNTS_100("Precache.Fetch.PercentCompleted", On 2015/06/26 17:03:37, Mark P wrote: > Why ...
5 years, 5 months ago (2015-06-26 17:48:57 UTC) #9
Mark P
histograms.xml lgtm
5 years, 5 months ago (2015-06-26 18:58:13 UTC) #10
mef
net/url_request/* lgtm
5 years, 5 months ago (2015-06-26 19:31:21 UTC) #11
bengr
https://codereview.chromium.org/1212773002/diff/1/components/precache/core/precache_fetcher.h File components/precache/core/precache_fetcher.h (right): https://codereview.chromium.org/1212773002/diff/1/components/precache/core/precache_fetcher.h#newcode126 components/precache/core/precache_fetcher.h:126: int total_response_bytes_; Are we concerned about overflow? https://codereview.chromium.org/1212773002/diff/40001/components/precache/core/precache_fetcher.cc File ...
5 years, 5 months ago (2015-06-30 19:26:19 UTC) #12
twifkak
https://codereview.chromium.org/1212773002/diff/1/components/precache/core/precache_fetcher.h File components/precache/core/precache_fetcher.h (right): https://codereview.chromium.org/1212773002/diff/1/components/precache/core/precache_fetcher.h#newcode126 components/precache/core/precache_fetcher.h:126: int total_response_bytes_; On 2015/06/30 19:26:19, bengr wrote: > Are ...
5 years, 5 months ago (2015-06-30 20:23:51 UTC) #13
bengr
https://codereview.chromium.org/1212773002/diff/40001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1212773002/diff/40001/components/precache/core/precache_fetcher.cc#newcode185 components/precache/core/precache_fetcher.cc:185: num_manifest_urls_to_fetch_ * 100); On 2015/06/30 20:23:51, twifkak wrote: > ...
5 years, 5 months ago (2015-07-06 17:31:08 UTC) #14
twifkak
https://codereview.chromium.org/1212773002/diff/40001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1212773002/diff/40001/components/precache/core/precache_fetcher.cc#newcode185 components/precache/core/precache_fetcher.cc:185: num_manifest_urls_to_fetch_ * 100); On 2015/07/06 17:31:08, bengr wrote: > ...
5 years, 5 months ago (2015-07-07 00:26:28 UTC) #15
bengr
https://codereview.chromium.org/1212773002/diff/100001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1212773002/diff/100001/components/precache/core/precache_fetcher.cc#newcode145 components/precache/core/precache_fetcher.cc:145: int64 current, I think you want to use int64_t. ...
5 years, 5 months ago (2015-07-08 19:52:41 UTC) #16
twifkak
https://codereview.chromium.org/1212773002/diff/100001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1212773002/diff/100001/components/precache/core/precache_fetcher.cc#newcode145 components/precache/core/precache_fetcher.cc:145: int64 current, On 2015/07/08 19:52:40, bengr wrote: > I ...
5 years, 5 months ago (2015-07-08 19:59:03 UTC) #17
bengr
On 2015/07/08 19:59:03, twifkak wrote: > https://codereview.chromium.org/1212773002/diff/100001/components/precache/core/precache_fetcher.cc > File components/precache/core/precache_fetcher.cc (right): > > https://codereview.chromium.org/1212773002/diff/100001/components/precache/core/precache_fetcher.cc#newcode145 > ...
5 years, 5 months ago (2015-07-08 20:04:29 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212773002/100001
5 years, 5 months ago (2015-07-08 20:12:55 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/36305)
5 years, 5 months ago (2015-07-08 21:09:10 UTC) #23
twifkak
mef: PTAL. Patch set 7 fixes a bug in FakeURLFetcher whereby a client relies on ...
5 years, 5 months ago (2015-07-09 00:35:01 UTC) #24
twifkak
OK, release cut is happening Real Soon Now, and I need this in. I think ...
5 years, 5 months ago (2015-07-10 20:12:26 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212773002/120001
5 years, 5 months ago (2015-07-10 20:14:03 UTC) #28
mef
On 2015/07/10 20:14:03, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
5 years, 5 months ago (2015-07-10 20:46:33 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 5 months ago (2015-07-10 21:24:25 UTC) #30
commit-bot: I haz the power
5 years, 5 months ago (2015-07-10 21:25:14 UTC) #31
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0d97553cdb341dbdf4a40ac1c0dee17eb44e39af
Cr-Commit-Position: refs/heads/master@{#338361}

Powered by Google App Engine
This is Rietveld 408576698