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

Issue 2789623005: Add UMA metric to track parallel download requests stats. (Closed)

Created:
3 years, 8 months ago by xingliu
Modified:
3 years, 8 months ago
CC:
chromium-reviews, asanka, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA metric to track parallel download requests stats. Add requests count to track the actual requests sent and special requests(offset smaller than initial request offset) sent in parallel download. Add a boolean metric to track if the file sink is gone when we try to push a byte stream reader to the sink. BUG=644352 Review-Url: https://codereview.chromium.org/2789623005 Cr-Commit-Position: refs/heads/master@{#461556} Committed: https://chromium.googlesource.com/chromium/src/+/ec174ac638779aa4db3573285a40b513e98c5e93

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comment polished. #

Patch Set 3 : Work on feedback. #

Patch Set 4 : Work on feedback. #

Patch Set 5 : Removed a DCHECK that breaks the unit tests. #

Total comments: 5

Patch Set 6 : Work on feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -68 lines) Patch
M content/browser/download/download_create_info.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/download/download_request_core.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/download_stats.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/download/download_stats.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/download/parallel_download_job.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/parallel_download_job.cc View 1 2 3 4 5 5 chunks +13 lines, -23 lines 0 comments Download
M content/browser/download/parallel_download_job_unittest.cc View 1 2 3 13 chunks +12 lines, -39 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (17 generated)
xingliu
Hi, PTAL, thanks.
3 years, 8 months ago (2017-03-30 22:45:37 UTC) #4
Ilya Sherman
Metrics LGTM % nits: https://codereview.chromium.org/2789623005/diff/1/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2789623005/diff/1/content/browser/download/download_stats.cc#newcode778 content/browser/download/download_stats.cc:778: request_count, 1, 10, 10); nit: ...
3 years, 8 months ago (2017-03-31 00:33:04 UTC) #7
xingliu
Thanks for the review, PTAL. https://codereview.chromium.org/2789623005/diff/1/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2789623005/diff/1/content/browser/download/download_stats.cc#newcode778 content/browser/download/download_stats.cc:778: request_count, 1, 10, 10); ...
3 years, 8 months ago (2017-03-31 21:48:27 UTC) #10
Ilya Sherman
Metrics LGTM, thanks. (It looks like you removed one of the metrics? Was that intentional?)
3 years, 8 months ago (2017-03-31 22:03:10 UTC) #11
xingliu
On 2017/03/31 22:03:10, Ilya Sherman wrote: > Metrics LGTM, thanks. (It looks like you removed ...
3 years, 8 months ago (2017-03-31 22:24:48 UTC) #12
David Trainor- moved to gerrit
lgtm https://codereview.chromium.org/2789623005/diff/80001/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2789623005/diff/80001/content/browser/download/parallel_download_job.cc#newcode175 content/browser/download/parallel_download_job.cc:175: DCHECK(it->offset >= initial_request_offset_); DCHECK_GE?
3 years, 8 months ago (2017-04-03 17:59:57 UTC) #15
qinmin
lgtm % nit https://codereview.chromium.org/2789623005/diff/80001/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2789623005/diff/80001/content/browser/download/parallel_download_job.cc#newcode173 content/browser/download/parallel_download_job.cc:173: for (auto it = slices_to_download.begin() + ...
3 years, 8 months ago (2017-04-03 18:36:20 UTC) #16
xingliu
Thanks for the review. https://codereview.chromium.org/2789623005/diff/80001/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2789623005/diff/80001/content/browser/download/parallel_download_job.cc#newcode173 content/browser/download/parallel_download_job.cc:173: for (auto it = slices_to_download.begin() ...
3 years, 8 months ago (2017-04-03 20:38:05 UTC) #19
qinmin
https://codereview.chromium.org/2789623005/diff/80001/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2789623005/diff/80001/content/browser/download/parallel_download_job.cc#newcode173 content/browser/download/parallel_download_job.cc:173: for (auto it = slices_to_download.begin() + 1; it != ...
3 years, 8 months ago (2017-04-03 20:46:49 UTC) #20
xingliu
On 2017/04/03 20:46:49, qinmin wrote: > https://codereview.chromium.org/2789623005/diff/80001/content/browser/download/parallel_download_job.cc > File content/browser/download/parallel_download_job.cc (right): > > https://codereview.chromium.org/2789623005/diff/80001/content/browser/download/parallel_download_job.cc#newcode173 > ...
3 years, 8 months ago (2017-04-03 21:12:24 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/2789623005/100001
3 years, 8 months ago (2017-04-03 22:13:49 UTC) #26
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 22:21:23 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/ec174ac638779aa4db3573285a40...

Powered by Google App Engine
This is Rietveld 408576698