summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/backend_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/backend_impl.cc')
-rw-r--r--net/disk_cache/backend_impl.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc
index 05d017a..c0fa867 100644
--- a/net/disk_cache/backend_impl.cc
+++ b/net/disk_cache/backend_impl.cc
@@ -676,6 +676,15 @@ void BackendImpl::OnStatsTimer() {
current /= time;
stats_.SetCounter(Stats::OPEN_ENTRIES, current);
stats_.SetCounter(Stats::MAX_ENTRIES, max_refs_);
+
+ static bool first_time = true;
+ if (first_time) {
+ first_time = false;
+ UMA_HISTOGRAM_COUNTS(L"DiskCache.Entries", data_->header.num_entries);
+ UMA_HISTOGRAM_COUNTS(L"DiskCache.Size",
+ data_->header.num_bytes / (1024 * 1024));
+ UMA_HISTOGRAM_COUNTS(L"DiskCache.MaxSize", max_size_ / (1024 * 1024));
+ }
}
void BackendImpl::IncrementIoCount() {