diff options
author | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 19:08:23 +0000 |
---|---|---|
committer | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 19:08:23 +0000 |
commit | 553dba6dd707ee02e609910462d2b7977f284af2 (patch) | |
tree | c38ea1fbfb3a1d387134541faa9bdfc0720234cf /net/disk_cache/entry_impl.cc | |
parent | 0e7fe5cab991f8751ecaa6cd43ff7e51d9647dde (diff) | |
download | chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.zip chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.tar.gz chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.tar.bz2 |
Use string for Histogram names since these are all ASCII anyway.
Wide-character literals cause problems between platforms.
Review URL: http://codereview.chromium.org/28046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/entry_impl.cc')
-rw-r--r-- | net/disk_cache/entry_impl.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc index a8f9ad1..b64073a 100644 --- a/net/disk_cache/entry_impl.cc +++ b/net/disk_cache/entry_impl.cc @@ -90,8 +90,8 @@ 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)); + UMA_HISTOGRAM_COUNTS("DiskCache.DeleteHeader", GetDataSize(0)); + UMA_HISTOGRAM_COUNTS("DiskCache.DeleteData", GetDataSize(1)); for (int index = 0; index < NUM_STREAMS; index++) { Addr address(entry_.Data()->data_addr[index]); if (address.is_initialized()) { @@ -211,7 +211,7 @@ int EntryImpl::ReadData(int index, int offset, net::IOBuffer* buf, int buf_len, return net::ERR_INVALID_ARGUMENT; Time start = Time::Now(); - static Histogram stats(L"DiskCache.ReadTime", TimeDelta::FromMilliseconds(1), + static Histogram stats("DiskCache.ReadTime", TimeDelta::FromMilliseconds(1), TimeDelta::FromSeconds(10), 50); stats.SetFlags(kUmaTargetedHistogramFlag); @@ -285,7 +285,7 @@ int EntryImpl::WriteData(int index, int offset, net::IOBuffer* buf, int buf_len, } Time start = Time::Now(); - static Histogram stats(L"DiskCache.WriteTime", TimeDelta::FromMilliseconds(1), + static Histogram stats("DiskCache.WriteTime", TimeDelta::FromMilliseconds(1), TimeDelta::FromSeconds(10), 50); stats.SetFlags(kUmaTargetedHistogramFlag); @@ -557,7 +557,7 @@ void EntryImpl::DeleteData(Addr address, int index) { files_[index] = NULL; // Releases the object. if (!DeleteCacheFile(backend_->GetFileName(address))) { - UMA_HISTOGRAM_COUNTS(L"DiskCache.DeleteFailed", 1); + UMA_HISTOGRAM_COUNTS("DiskCache.DeleteFailed", 1); LOG(ERROR) << "Failed to delete " << backend_->GetFileName(address) << " from the cache."; } @@ -785,4 +785,3 @@ void EntryImpl::Log(const char* msg) { } } // namespace disk_cache - |