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>2008-08-12 20:51:12 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-12 20:51:12 +0000
commitb810aa3cd171acccac12ee440bd0ca44784c9e53 (patch)
tree75ad9c11f38738dc946e1bbfb7218d4af75fdad3 /net/disk_cache/entry_impl.cc
parenta3936602d482942c4fd64245f809320a8d251995 (diff)
downloadchromium_src-b810aa3cd171acccac12ee440bd0ca44784c9e53.zip
chromium_src-b810aa3cd171acccac12ee440bd0ca44784c9e53.tar.gz
chromium_src-b810aa3cd171acccac12ee440bd0ca44784c9e53.tar.bz2
Back off the histograms change.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@741 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/entry_impl.cc')
-rw-r--r--net/disk_cache/entry_impl.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc
index 3d3ada2..58509c1 100644
--- a/net/disk_cache/entry_impl.cc
+++ b/net/disk_cache/entry_impl.cc
@@ -29,7 +29,6 @@
#include "net/disk_cache/entry_impl.h"
-#include "base/histogram.h"
#include "base/message_loop.h"
#include "base/string_util.h"
#include "net/base/net_errors.h"
@@ -123,8 +122,6 @@ EntryImpl::EntryImpl(BackendImpl* backend, Addr address)
// written before).
EntryImpl::~EntryImpl() {
if (doomed_) {
- UMA_HISTOGRAM_COUNTS(L"DiskCache.DeleteHeader", GetDataSize(0));
- UMA_HISTOGRAM_COUNTS(L"DiskCache.DeleteData", GetDataSize(1));
for (int index = 0; index < kKeyFileIndex; index++) {
Addr address(entry_.Data()->data_addr[index]);
if (address.is_initialized()) {
@@ -242,11 +239,6 @@ int EntryImpl::ReadData(int index, int offset, char* buf, int buf_len,
if (buf_len < 0)
return net::ERR_INVALID_ARGUMENT;
- Time start = Time::Now();
- static Histogram stats(L"DiskCache.ReadTime", TimeDelta::FromMilliseconds(1),
- TimeDelta::FromSeconds(10), 50);
- stats.SetFlags(kUmaTargetedHistogramFlag);
-
if (offset + buf_len > entry_size)
buf_len = entry_size - offset;
@@ -258,7 +250,6 @@ int EntryImpl::ReadData(int index, int offset, char* buf, int buf_len,
// Complete the operation locally.
DCHECK(kMaxBlockSize >= offset + buf_len);
memcpy(buf , user_buffers_[index].get() + offset, buf_len);
- stats.AddTime(Time::Now() - start);
return buf_len;
}
@@ -290,7 +281,6 @@ int EntryImpl::ReadData(int index, int offset, char* buf, int buf_len,
if (io_callback && completed)
io_callback->Discard();
- stats.AddTime(Time::Now() - start);
return (completed || !completion_callback) ? buf_len : net::ERR_IO_PENDING;
}
@@ -316,11 +306,6 @@ int EntryImpl::WriteData(int index, int offset, const char* buf, int buf_len,
return net::ERR_FAILED;
}
- Time start = Time::Now();
- static Histogram stats(L"DiskCache.WriteTime", TimeDelta::FromMilliseconds(1),
- TimeDelta::FromSeconds(10), 50);
- stats.SetFlags(kUmaTargetedHistogramFlag);
-
// Read the size at this point (it may change inside prepare).
int entry_size = entry_.Data()->data_size[index];
if (!PrepareTarget(index, offset, buf_len, truncate))
@@ -352,7 +337,6 @@ int EntryImpl::WriteData(int index, int offset, const char* buf, int buf_len,
// Complete the operation locally.
DCHECK(kMaxBlockSize >= offset + buf_len);
memcpy(user_buffers_[index].get() + offset, buf, buf_len);
- stats.AddTime(Time::Now() - start);
return buf_len;
}
@@ -387,7 +371,6 @@ int EntryImpl::WriteData(int index, int offset, const char* buf, int buf_len,
if (io_callback && completed)
io_callback->Discard();
- stats.AddTime(Time::Now() - start);
return (completed || !completion_callback) ? buf_len : net::ERR_IO_PENDING;
}