summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/stats.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 23:53:36 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 23:53:36 +0000
commitb0358c7208c45f845673fe73c833129cd3314057 (patch)
tree8d721210e355e84b432d25dc2791ec83bb6c57e2 /net/disk_cache/stats.h
parentab813125e93624da1cb95bfab5b55b5ccc0d9808 (diff)
downloadchromium_src-b0358c7208c45f845673fe73c833129cd3314057.zip
chromium_src-b0358c7208c45f845673fe73c833129cd3314057.tar.gz
chromium_src-b0358c7208c45f845673fe73c833129cd3314057.tar.bz2
Disk cache: Instead of saving the cache stats only when
the destructor is called, store them each five minutes. From the dev channel, 15% of the runs the disk cache destructor is not called, so the stats are not that reliable without this change. Review URL: http://codereview.chromium.org/42373 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12043 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/stats.h')
-rw-r--r--net/disk_cache/stats.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/disk_cache/stats.h b/net/disk_cache/stats.h
index 84f013d..6658df6 100644
--- a/net/disk_cache/stats.h
+++ b/net/disk_cache/stats.h
@@ -60,6 +60,9 @@ class Stats {
void GetItems(StatsItems* items);
+ // Saves the stats to disk.
+ void Store();
+
// Support for StatsHistograms. Together, these methods allow StatsHistograms
// to take a snapshot of the data_sizes_ as the histogram data.
int GetBucketRange(size_t i) const;