diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-12 20:51:12 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-12 20:51:12 +0000 |
commit | b810aa3cd171acccac12ee440bd0ca44784c9e53 (patch) | |
tree | 75ad9c11f38738dc946e1bbfb7218d4af75fdad3 /net/disk_cache/block_files.cc | |
parent | a3936602d482942c4fd64245f809320a8d251995 (diff) | |
download | chromium_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/block_files.cc')
-rw-r--r-- | net/disk_cache/block_files.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/disk_cache/block_files.cc b/net/disk_cache/block_files.cc index 93578cf..e985765 100644 --- a/net/disk_cache/block_files.cc +++ b/net/disk_cache/block_files.cc @@ -29,10 +29,8 @@ #include "net/disk_cache/block_files.h" -#include "base/histogram.h" #include "base/scoped_handle.h" #include "base/string_util.h" -#include "base/time.h" #include "net/disk_cache/file_lock.h" namespace { @@ -63,7 +61,6 @@ bool CreateMapBlock(int target, int size, disk_cache::BlockFileHeader* header, return false; } - Time start = Time::Now(); // We are going to process the map on 32-block chunks (32 bits), and on every // chunk, iterate through the 8 nibbles where the new block can be located. int current = header->hints[target - 1]; @@ -89,7 +86,6 @@ bool CreateMapBlock(int target, int size, disk_cache::BlockFileHeader* header, if (target != size) { header->empty[target - size - 1]++; } - HISTOGRAM_TIMES(L"DiskCache.CreateBlock", Time::Now() - start); return true; } } @@ -108,7 +104,6 @@ void DeleteMapBlock(int index, int size, disk_cache::BlockFileHeader* header) { NOTREACHED(); return; } - Time start = Time::Now(); int byte_index = index / 8; uint8* byte_map = reinterpret_cast<uint8*>(header->allocation_map); uint8 map_block = byte_map[byte_index]; @@ -137,7 +132,6 @@ void DeleteMapBlock(int index, int size, disk_cache::BlockFileHeader* header) { } header->num_entries--; DCHECK(header->num_entries >= 0); - HISTOGRAM_TIMES(L"DiskCache.DeleteBlock", Time::Now() - start); } // Restores the "empty counters" and allocation hints. @@ -319,7 +313,6 @@ MappedFile* BlockFiles::FileForNewBlock(FileType block_type, int block_count) { MappedFile* file = block_files_[block_type - 1]; BlockFileHeader* header = reinterpret_cast<BlockFileHeader*>(file->buffer()); - Time start = Time::Now(); while (NeedToGrowBlockFile(header, block_count)) { if (kMaxBlocks == header->max_entries) { file = NextFile(file); @@ -333,7 +326,6 @@ MappedFile* BlockFiles::FileForNewBlock(FileType block_type, int block_count) { return NULL; break; } - HISTOGRAM_TIMES(L"DiskCache.GetFileForNewBlock", Time::Now() - start); return file; } |