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

Issue 2598773002: [Downloads] Deprecate incorrect metrics. (Closed)

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

Description

[Downloads] Deprecate incorrect metrics. Download.ActualBandwidth: Download.PotentialBandwidth: Download.BandwidthUsed: These metrics were being recorded on each network read and were assuming that the size of the buffer and the duration between the prior read completion event and this one were reliable indicators of bandwidth. In practice, recording on each read is noisy and not all useful when aggregated across all users. Also size_of_buffer / elapsed_time is not an indicator of potential bandwidth, which makes both the PotentialBandwidth and BandwidthUsed incorrect. Download.DiskBandwidthUsedPercentage: Neither useful nor correct. SB2.DownloadDuration: Was measuring the lifetime of a DownloadRequestCore object, which doesn't correspond to the duration of a download. Download.InterruptedOverrunBytes: Download.InterruptedUnderrunBytes: When reporting UMA, the code was incorrectly picking the histogram name. Hence the meanings of the two histograms were switched. Rather than deprecating, I switched the descriptions around. The names are henceforth a bit odd, but the description should clarify what they are measuring. Download.WriteSize: Download.WriteLoopCount: WriteSize and WriteLoopCount metrics aren't actionable. WriteSize depends on the buffer sizes involved and the data is too noisy to be useful. Likewise WriteLoopCount counts the number of attempts it takes to fully write out a buffer. This isn't actionable. BUG=none Review-Url: https://codereview.chromium.org/2598773002 Cr-Commit-Position: refs/heads/master@{#441780} Committed: https://chromium.googlesource.com/chromium/src/+/d1d21f7fcc326b5875fbe7d4ff95376c8fcddbc3

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -64 lines) Patch
M content/browser/download/base_file.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/download/download_request_core.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/download/download_request_core.cc View 5 chunks +1 line, -20 lines 0 comments Download
M content/browser/download/download_stats.h View 1 2 3 1 chunk +0 lines, -10 lines 0 comments Download
M content/browser/download/download_stats.cc View 1 2 3 3 chunks +0 lines, -21 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 9 chunks +31 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
asanka
asvitkine: /histograms/ dtrainor: /download/ :-)
4 years ago (2016-12-21 20:03:39 UTC) #2
David Trainor- moved to gerrit
download/ lgtm
3 years, 11 months ago (2017-01-03 19:38:19 UTC) #6
Alexei Svitkine (slow)
lgtm
3 years, 11 months ago (2017-01-03 19:46:46 UTC) #7
asanka
Thanks!
3 years, 11 months ago (2017-01-05 21:50:27 UTC) #8
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/2598773002/60001
3 years, 11 months ago (2017-01-05 21:51:27 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 01:17:37 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/d1d21f7fcc326b5875fbe7d4ff95...

Powered by Google App Engine
This is Rietveld 408576698