summaryrefslogtreecommitdiffstats
path: root/content/browser/download/download_stats.cc
diff options
context:
space:
mode:
authorasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-09 13:38:55 +0000
committerasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-09 13:38:55 +0000
commitbf3bff73c6adc84b49447ee9cffac24e0a63c1c7 (patch)
tree2cf1f0921e1009149b0d8bd5562aa268cdcee59e /content/browser/download/download_stats.cc
parentb7f526f6a6b5f81bb649dd2e77faa24a0b4afb39 (diff)
downloadchromium_src-bf3bff73c6adc84b49447ee9cffac24e0a63c1c7.zip
chromium_src-bf3bff73c6adc84b49447ee9cffac24e0a63c1c7.tar.gz
chromium_src-bf3bff73c6adc84b49447ee9cffac24e0a63c1c7.tar.bz2
[Download] Deprecate WRITE_SIZE_COUNT and WRITE_LOOP_COUNT UMA enums.
The Download.Counts histogram has two enum values, WRITE_SIZE_COUNT and WRITE_LOOP_COUNT that measure the number of samples recorded in the Download.WriteSize and Download.WriteLoopCount UMA histograms. This is a waste since the count of samples is readily available. In addition, these two counts exceed every other bucket in Download.Counts by ~4 orders of magnitude causing everything else to be normalized to ~0%. BUG=none Review URL: https://chromiumcodereview.appspot.com/22529003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/download_stats.cc')
-rw-r--r--content/browser/download/download_stats.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc
index f8a1e09..7831a4d 100644
--- a/content/browser/download/download_stats.cc
+++ b/content/browser/download/download_stats.cc
@@ -168,13 +168,11 @@ void RecordDangerousDownloadDiscard(DownloadDiscardReason reason,
}
void RecordDownloadWriteSize(size_t data_len) {
- RecordDownloadCount(WRITE_SIZE_COUNT);
int max = 1024 * 1024; // One Megabyte.
UMA_HISTOGRAM_CUSTOM_COUNTS("Download.WriteSize", data_len, 1, max, 256);
}
void RecordDownloadWriteLoopCount(int count) {
- RecordDownloadCount(WRITE_LOOP_COUNT);
UMA_HISTOGRAM_ENUMERATION("Download.WriteLoopCount", count, 20);
}