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

Unified Diff: content/browser/download/download_stats.h

Issue 2750713003: Add UMA for estimating disk bandwidth and the time saved with parallel download (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/download/download_stats.h
diff --git a/content/browser/download/download_stats.h b/content/browser/download/download_stats.h
index c4802438737d8aea64728762a4015e7a402313f8..bc21bc3bc77bdc144b202db5be29e243d0fce782 100644
--- a/content/browser/download/download_stats.h
+++ b/content/browser/download/download_stats.h
@@ -202,6 +202,14 @@ void RecordFileBandwidth(size_t length,
base::TimeDelta disk_write_time,
base::TimeDelta elapsed_time);
+// Records the bandwidth for parallel download and estimates the saved time at
+// the file end. Does not count in any hash computation or file open/close time.
+void RecordParallelDownloadStats(
+ size_t bytes_downloaded_with_parallel_streams,
+ base::TimeDelta time_with_parallel_streams,
+ size_t bytes_downloaded_without_parallel_streams,
+ base::TimeDelta time_without_parallel_streams);
+
// Record the result of a download file rename.
void RecordDownloadFileRenameResultAfterRetry(
base::TimeDelta time_since_first_failure,

Powered by Google App Engine
This is Rietveld 408576698