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

Issue 2823273004: Add new UMA stats for parallelizable download (Closed)

Created:
3 years, 8 months ago by qinmin
Modified:
3 years, 8 months ago
CC:
chromium-reviews, jam, David Trainor- moved to gerrit, darin-cc_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add new UMA stats for parallelizable download To study the effectiveness of parallel download, we want to compare the bandwidth if parallel downloads are not parallelized. Because parallel download has requirements on file size, so comparing with all other downloads is be fair. This CL records the UMA metrics for downloads that satisfy the requirement of parallel download, while don't use parallel requests. BUG=644352, 712892 Review-Url: https://codereview.chromium.org/2823273004 Cr-Commit-Position: refs/heads/master@{#466128} Committed: https://chromium.googlesource.com/chromium/src/+/2269e30d4ea0874704bfbd4021c087ba960e7ea5

Patch Set 1 #

Total comments: 16

Patch Set 2 : addressing comments #

Total comments: 2

Patch Set 3 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -100 lines) Patch
M content/browser/download/download_browsertest.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/download/download_file.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/download/download_file_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/download/download_file_impl.cc View 1 4 chunks +10 lines, -7 lines 0 comments Download
M content/browser/download/download_file_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_item_impl.cc View 1 7 chunks +21 lines, -12 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 1 7 chunks +7 lines, -7 lines 0 comments Download
M content/browser/download/download_job.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/download/download_job.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/download/download_job_factory.cc View 1 5 chunks +14 lines, -12 lines 0 comments Download
M content/browser/download/download_job_impl.h View 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/download/download_job_impl.cc View 2 chunks +9 lines, -2 lines 0 comments Download
M content/browser/download/download_stats.h View 1 3 chunks +11 lines, -7 lines 0 comments Download
M content/browser/download/download_stats.cc View 1 8 chunks +52 lines, -24 lines 0 comments Download
M content/browser/download/mock_download_file.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/download/mock_download_file.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/download/parallel_download_job.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/parallel_download_job.cc View 1 2 chunks +1 line, -5 lines 0 comments Download
M content/browser/download/parallel_download_utils.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/download/parallel_download_utils.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M content/public/test/test_file_error_injector.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 5 chunks +35 lines, -1 line 0 comments Download

Messages

Total messages: 36 (22 generated)
qinmin
PTAL +isherman@ for histogram +alexmos@ for content/public/test/test_file_error_injector.cc
3 years, 8 months ago (2017-04-18 23:22:53 UTC) #2
alexmos
content/public/test/ LGTM
3 years, 8 months ago (2017-04-19 00:26:55 UTC) #3
Ilya Sherman
https://codereview.chromium.org/2823273004/diff/1/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2823273004/diff/1/content/browser/download/download_stats.cc#newcode779 content/browser/download/download_stats.cc:779: UMA_HISTOGRAM_ENUMERATION(histogram_name, type, UMA_HISTOGRAM macros require a runtime-constant name. Please ...
3 years, 8 months ago (2017-04-19 00:29:41 UTC) #4
xingliu
In general looks good, some nits. https://codereview.chromium.org/2823273004/diff/1/content/browser/download/download_file.h File content/browser/download/download_file.h (right): https://codereview.chromium.org/2823273004/diff/1/content/browser/download/download_file.h#newcode50 content/browser/download/download_file.h:50: virtual void Initialize(const ...
3 years, 8 months ago (2017-04-19 02:18:11 UTC) #5
qinmin
https://codereview.chromium.org/2823273004/diff/1/content/browser/download/download_file.h File content/browser/download/download_file.h (right): https://codereview.chromium.org/2823273004/diff/1/content/browser/download/download_file.h#newcode50 content/browser/download/download_file.h:50: virtual void Initialize(const InitializeCallback& callback, On 2017/04/19 02:18:11, xingliu ...
3 years, 8 months ago (2017-04-19 22:42:34 UTC) #6
qinmin
3 years, 8 months ago (2017-04-19 22:42:35 UTC) #7
Ilya Sherman
Metrics LGTM, thanks.
3 years, 8 months ago (2017-04-19 22:45:59 UTC) #8
David Trainor- moved to gerrit
lgtm https://codereview.chromium.org/2823273004/diff/20001/content/browser/download/download_job_factory.cc File content/browser/download/download_job_factory.cc (right): https://codereview.chromium.org/2823273004/diff/20001/content/browser/download/download_job_factory.cc#newcode52 content/browser/download/download_job_factory.cc:52: ? ParallelDownloadCreationEvent::STARTED_PARALLEL_DOWNLOAD Is this still valid? We didn't ...
3 years, 8 months ago (2017-04-19 22:56:28 UTC) #9
xingliu
lgtm.
3 years, 8 months ago (2017-04-19 23:04:16 UTC) #10
qinmin
https://codereview.chromium.org/2823273004/diff/20001/content/browser/download/download_job_factory.cc File content/browser/download/download_job_factory.cc (right): https://codereview.chromium.org/2823273004/diff/20001/content/browser/download/download_job_factory.cc#newcode52 content/browser/download/download_job_factory.cc:52: ? ParallelDownloadCreationEvent::STARTED_PARALLEL_DOWNLOAD On 2017/04/19 22:56:28, David Trainor-ping if over ...
3 years, 8 months ago (2017-04-20 17:00:28 UTC) #11
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/2823273004/20001
3 years, 8 months ago (2017-04-20 17:01:23 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/351883) linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 8 months ago (2017-04-20 17:12:13 UTC) #16
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/2823273004/80001
3 years, 8 months ago (2017-04-20 20:58:36 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 21:05:10 UTC) #36
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2269e30d4ea0874704bfbd4021c0...

Powered by Google App Engine
This is Rietveld 408576698