Commit a36aa31b authored by Xing Liu's avatar Xing Liu Committed by Commit Bot

Download: Deprecate a parallel download metric.

Deprecate metric "Download.ParallelDownloadAddStreamSuccess".

Bug: 1127951
Change-Id: I534468866d00f42b00575c6143c282b05c3a2c0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2485840Reviewed-by: default avatarShakti Sahu <shaktisahu@chromium.org>
Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Reviewed-by: default avatarJesse Doherty <jwd@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818976}
parent e7e5da94
...@@ -601,18 +601,6 @@ void RecordParallelDownloadRequestCount(int request_count) { ...@@ -601,18 +601,6 @@ void RecordParallelDownloadRequestCount(int request_count) {
request_count, 1, 10, 11); request_count, 1, 10, 11);
} }
void RecordParallelDownloadAddStreamSuccess(bool success,
bool support_range_request) {
if (support_range_request) {
base::UmaHistogramBoolean("Download.ParallelDownloadAddStreamSuccess",
success);
} else {
base::UmaHistogramBoolean(
"Download.ParallelDownloadAddStreamSuccess.NoAcceptRangesHeader",
success);
}
}
void RecordParallelRequestCreationFailure(DownloadInterruptReason reason) { void RecordParallelRequestCreationFailure(DownloadInterruptReason reason) {
base::UmaHistogramSparse("Download.ParallelDownload.CreationFailureReason", base::UmaHistogramSparse("Download.ParallelDownload.CreationFailureReason",
reason); reason);
......
...@@ -34,7 +34,6 @@ ParallelDownloadJob::ParallelDownloadJob( ...@@ -34,7 +34,6 @@ ParallelDownloadJob::ParallelDownloadJob(
content_length_(create_info.total_bytes), content_length_(create_info.total_bytes),
requests_sent_(false), requests_sent_(false),
is_canceled_(false), is_canceled_(false),
range_support_(create_info.accept_range),
url_loader_factory_provider_(std::move(url_loader_factory_provider)), url_loader_factory_provider_(std::move(url_loader_factory_provider)),
wake_lock_provider_binder_(std::move(wake_lock_provider_binder)) {} wake_lock_provider_binder_(std::move(wake_lock_provider_binder)) {}
...@@ -130,9 +129,6 @@ void ParallelDownloadJob::OnInputStreamReady( ...@@ -130,9 +129,6 @@ void ParallelDownloadJob::OnInputStreamReady(
bool success = bool success =
DownloadJob::AddInputStream(std::move(input_stream), worker->offset()); DownloadJob::AddInputStream(std::move(input_stream), worker->offset());
RecordParallelDownloadAddStreamSuccess(
success, range_support_ == RangeRequestSupportType::kSupport);
// Destroy the request if the sink is gone. // Destroy the request if the sink is gone.
if (!success) { if (!success) {
VLOG(kDownloadJobVerboseLevel) VLOG(kDownloadJobVerboseLevel)
......
...@@ -110,9 +110,6 @@ class COMPONENTS_DOWNLOAD_EXPORT ParallelDownloadJob ...@@ -110,9 +110,6 @@ class COMPONENTS_DOWNLOAD_EXPORT ParallelDownloadJob
// If the download progress is canceled. // If the download progress is canceled.
bool is_canceled_; bool is_canceled_;
// Whether the server accepts range requests.
RangeRequestSupportType range_support_;
// URLLoaderFactoryProvider to retrieve the URLLoaderFactory and issue // URLLoaderFactoryProvider to retrieve the URLLoaderFactory and issue
// parallel requests. // parallel requests.
URLLoaderFactoryProvider::URLLoaderFactoryProviderPtr URLLoaderFactoryProvider::URLLoaderFactoryProviderPtr
......
...@@ -305,13 +305,6 @@ COMPONENTS_DOWNLOAD_EXPORT void RecordParallelizableDownloadCount( ...@@ -305,13 +305,6 @@ COMPONENTS_DOWNLOAD_EXPORT void RecordParallelizableDownloadCount(
COMPONENTS_DOWNLOAD_EXPORT void RecordParallelDownloadRequestCount( COMPONENTS_DOWNLOAD_EXPORT void RecordParallelDownloadRequestCount(
int request_count); int request_count);
// Records if each byte stream is successfully added to download sink.
// |support_range_request| indicates whether the server strongly supports range
// requests.
COMPONENTS_DOWNLOAD_EXPORT void RecordParallelDownloadAddStreamSuccess(
bool success,
bool support_range_request);
// Records the bandwidth for parallelizable download and estimates the saved // Records the bandwidth for parallelizable download and estimates the saved
// time at the file end. Does not count in any hash computation or file // time at the file end. Does not count in any hash computation or file
// open/close time. // open/close time.
......
...@@ -514,6 +514,9 @@ reviews. Googlers can read more about this at go/gwsq-gerrit. ...@@ -514,6 +514,9 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
<histogram name="Download.ParallelDownloadAddStreamSuccess" <histogram name="Download.ParallelDownloadAddStreamSuccess"
enum="BooleanSuccess" expires_after="2020-10-25"> enum="BooleanSuccess" expires_after="2020-10-25">
<obsolete>
Depcreated 10/2020
</obsolete>
<owner>xingliu@chromium.org</owner> <owner>xingliu@chromium.org</owner>
<summary> <summary>
Records if the byte stream reader of a subsequent request is successfully Records if the byte stream reader of a subsequent request is successfully
......
...@@ -11264,6 +11264,9 @@ reviews. Googlers can read more about this at go/gwsq-gerrit. ...@@ -11264,6 +11264,9 @@ reviews. Googlers can read more about this at go/gwsq-gerrit.
</histogram_suffixes> </histogram_suffixes>
<histogram_suffixes name="NoAcceptRangesHeader" separator="."> <histogram_suffixes name="NoAcceptRangesHeader" separator=".">
<obsolete>
Deprecated 10/2020
</obsolete>
<suffix name="NoAcceptRangesHeader" <suffix name="NoAcceptRangesHeader"
label="For parallel requests created without accept-ranges header."/> label="For parallel requests created without accept-ranges header."/>
<affected-histogram name="Download.ParallelDownloadAddStreamSuccess"/> <affected-histogram name="Download.ParallelDownloadAddStreamSuccess"/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment