summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/entry_impl.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 22:36:19 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 22:36:19 +0000
commit66e35f3811536754d6f74ed7cf3140d8c0bda192 (patch)
tree6f5b7844f7dc0a8f76d5a921e1a0739775ca89c6 /net/disk_cache/entry_impl.cc
parentb781f63538c962d2d839c5d5f6914ff4843fe823 (diff)
downloadchromium_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/entry_impl.cc')
-rw-r--r--net/disk_cache/entry_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc
index 1c041d2..db7c284 100644
--- a/net/disk_cache/entry_impl.cc
+++ b/net/disk_cache/entry_impl.cc
@@ -209,6 +209,7 @@ int EntryImpl::ReadData(int index, int offset, net::IOBuffer* buf, int buf_len,
UpdateRank(false);
backend_->OnEvent(Stats::READ_DATA);
+ backend_->OnRead(buf_len);
if (user_buffers_[index].get()) {
// Complete the operation locally.
@@ -302,6 +303,7 @@ int EntryImpl::WriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
UpdateRank(true);
backend_->OnEvent(Stats::WRITE_DATA);
+ backend_->OnWrite(buf_len);
if (user_buffers_[index].get()) {
// Complete the operation locally.
@@ -460,6 +462,7 @@ bool EntryImpl::CreateEntry(Addr node_address, const std::string& key,
entry_store->key[key.size()] = '\0';
}
backend_->ModifyStorageSize(0, static_cast<int32>(key.size()));
+ CACHE_UMA(COUNTS, "KeySize", 0, static_cast<int32>(key.size()));
node->dirty = backend_->GetCurrentEntryId();
Log("Create Entry ");
return true;