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

Issue 2750713003: Add UMA for estimating disk bandwidth and the time saved with parallel download (Closed)

Created:
3 years, 9 months ago by qinmin
Modified:
3 years, 9 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 for estimating disk bandwidth and the time saved with parallel download This CL adds UMAs for disk bandwiths for parallel download when: 1. there are only 1 request active 2. there are multiple requests active It also adds a UMA to estimate the time saved through parallel download BUG=644352 Review-Url: https://codereview.chromium.org/2750713003 Cr-Commit-Position: refs/heads/master@{#458217} Committed: https://chromium.googlesource.com/chromium/src/+/0c5570d5cf495210b600a0b6fa3f3ec0b53a7b33

Patch Set 1 #

Total comments: 10

Patch Set 2 : address comments #

Patch Set 3 : fix UMA calculation #

Total comments: 17

Patch Set 4 : addressing comments #

Patch Set 5 : don't record UMA after pause #

Total comments: 8

Patch Set 6 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -12 lines) Patch
M content/browser/download/download_file.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_file_impl.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/download/download_file_impl.cc View 1 2 3 4 5 7 chunks +30 lines, -0 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/download/download_stats.h View 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/download/download_stats.cc View 1 2 3 4 5 3 chunks +55 lines, -12 lines 0 comments Download
M content/browser/download/mock_download_file.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
qinmin
PTAL
3 years, 9 months ago (2017-03-13 23:10:23 UTC) #2
xingliu
Discussion on the formula of time_saved. https://codereview.chromium.org/2750713003/diff/1/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2750713003/diff/1/content/browser/download/download_stats.cc#newcode742 content/browser/download/download_stats.cc:742: time_without_parallel_streams - Substraction ...
3 years, 9 months ago (2017-03-14 00:10:55 UTC) #3
David Trainor- moved to gerrit
https://codereview.chromium.org/2750713003/diff/1/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2750713003/diff/1/content/browser/download/download_stats.cc#newcode732 content/browser/download/download_stats.cc:732: UMA_HISTOGRAM_CUSTOM_COUNTS( Might be cleaner to have a helper that ...
3 years, 9 months ago (2017-03-14 15:28:38 UTC) #4
qinmin
https://codereview.chromium.org/2750713003/diff/1/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2750713003/diff/1/content/browser/download/download_stats.cc#newcode732 content/browser/download/download_stats.cc:732: UMA_HISTOGRAM_CUSTOM_COUNTS( On 2017/03/14 15:28:38, David Trainor-ping if over 24h ...
3 years, 9 months ago (2017-03-15 00:17:19 UTC) #5
xingliu
https://codereview.chromium.org/2750713003/diff/1/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2750713003/diff/1/content/browser/download/download_stats.cc#newcode742 content/browser/download/download_stats.cc:742: time_without_parallel_streams - On 2017/03/15 00:17:19, qinmin wrote: > TimeDelta ...
3 years, 9 months ago (2017-03-15 01:07:22 UTC) #6
qinmin
https://codereview.chromium.org/2750713003/diff/1/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2750713003/diff/1/content/browser/download/download_stats.cc#newcode742 content/browser/download/download_stats.cc:742: time_without_parallel_streams - On 2017/03/15 01:07:22, xingliu wrote: > On ...
3 years, 9 months ago (2017-03-15 16:29:09 UTC) #7
xingliu
lgtm
3 years, 9 months ago (2017-03-15 16:56:58 UTC) #8
Ilya Sherman
https://codereview.chromium.org/2750713003/diff/40001/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2750713003/diff/40001/content/browser/download/download_stats.cc#newcode354 content/browser/download/download_stats.cc:354: base::TimeDelta elapsed_time) { Optional nit: I find this function ...
3 years, 9 months ago (2017-03-15 20:54:43 UTC) #9
qinmin
https://codereview.chromium.org/2750713003/diff/40001/content/browser/download/download_stats.cc File content/browser/download/download_stats.cc (right): https://codereview.chromium.org/2750713003/diff/40001/content/browser/download/download_stats.cc#newcode354 content/browser/download/download_stats.cc:354: base::TimeDelta elapsed_time) { On 2017/03/15 20:54:43, Ilya Sherman wrote: ...
3 years, 9 months ago (2017-03-15 23:20:11 UTC) #10
Ilya Sherman
Metrics LGTM, thanks.
3 years, 9 months ago (2017-03-16 03:48:37 UTC) #11
qinmin
changed the logic to stop recording UMA if the download was paused, dtrainor@, xingliu@, PTAL ...
3 years, 9 months ago (2017-03-16 20:50:32 UTC) #12
xingliu
https://codereview.chromium.org/2750713003/diff/80001/content/browser/download/download_file.h File content/browser/download/download_file.h (right): https://codereview.chromium.org/2750713003/diff/80001/content/browser/download/download_file.h#newcode79 content/browser/download/download_file.h:79: virtual void Pause() {} The methods here are all ...
3 years, 9 months ago (2017-03-17 00:02:16 UTC) #13
David Trainor- moved to gerrit
lgtm https://codereview.chromium.org/2750713003/diff/80001/content/browser/download/download_file.h File content/browser/download/download_file.h (right): https://codereview.chromium.org/2750713003/diff/80001/content/browser/download/download_file.h#newcode79 content/browser/download/download_file.h:79: virtual void Pause() {} On 2017/03/17 00:02:15, xingliu ...
3 years, 9 months ago (2017-03-17 07:25:40 UTC) #14
qinmin
https://codereview.chromium.org/2750713003/diff/80001/content/browser/download/download_file.h File content/browser/download/download_file.h (right): https://codereview.chromium.org/2750713003/diff/80001/content/browser/download/download_file.h#newcode79 content/browser/download/download_file.h:79: virtual void Pause() {} On 2017/03/17 07:25:40, David Trainor-ping ...
3 years, 9 months ago (2017-03-17 19:52:55 UTC) #15
xingliu
New change lgtm.
3 years, 9 months ago (2017-03-20 19:00:32 UTC) #22
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/2750713003/140001
3 years, 9 months ago (2017-03-20 20:52:40 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-20 22:58:04 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/0c5570d5cf495210b600a0b6fa3f...

Powered by Google App Engine
This is Rietveld 408576698