diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-12 22:36:19 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-12 22:36:19 +0000 |
commit | 66e35f3811536754d6f74ed7cf3140d8c0bda192 (patch) | |
tree | 6f5b7844f7dc0a8f76d5a921e1a0739775ca89c6 /net/disk_cache/backend_impl.h | |
parent | b781f63538c962d2d839c5d5f6914ff4843fe823 (diff) | |
download | chromium_src-66e35f3811536754d6f74ed7cf3140d8c0bda192.zip chromium_src-66e35f3811536754d6f74ed7cf3140d8c0bda192.tar.gz chromium_src-66e35f3811536754d6f74ed7cf3140d8c0bda192.tar.bz2 |
Disk cache: Add a few more histograms.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2863039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52140 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/backend_impl.h')
-rw-r--r-- | net/disk_cache/backend_impl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/disk_cache/backend_impl.h b/net/disk_cache/backend_impl.h index 706a0cb..f0a8aab 100644 --- a/net/disk_cache/backend_impl.h +++ b/net/disk_cache/backend_impl.h @@ -171,6 +171,10 @@ class BackendImpl : public Backend { // Called when an interesting event should be logged (counted). void OnEvent(Stats::Counters an_event); + // Keeps track of paylod access (doesn't include metadata). + void OnRead(int bytes); + void OnWrite(int bytes); + // Timer callback to calculate usage statistics. void OnStatsTimer(); @@ -295,6 +299,8 @@ class BackendImpl : public Backend { int num_refs_; // Number of referenced cache entries. int max_refs_; // Max number of referenced cache entries. int num_pending_io_; // Number of pending IO operations. + int entry_count_; // Number of entries accessed lately. + int byte_count_; // Number of bytes read/written lately. net::CacheType cache_type_; int uma_report_; // Controls transmision of UMA data. uint32 user_flags_; // Flags set by the user. |