Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Unified Diff: net/disk_cache/blockfile/block_files.cc

Issue 484603006: Add LOCAL_ prefix to non-UMA histogram macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/blockfile/block_bitmaps_v3.cc ('k') | net/dns/host_resolver_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/block_files.cc
diff --git a/net/disk_cache/blockfile/block_files.cc b/net/disk_cache/blockfile/block_files.cc
index ae2e1b32e0bbd7afc814fea7c9721200d0998bcb..4ae217be40f5f13642439cd27d37a55216984d37 100644
--- a/net/disk_cache/blockfile/block_files.cc
+++ b/net/disk_cache/blockfile/block_files.cc
@@ -101,7 +101,7 @@ bool BlockHeader::CreateMapBlock(int size, int* index) {
if (target != size) {
header_->empty[target - size - 1]++;
}
- HISTOGRAM_TIMES("DiskCache.CreateBlock", TimeTicks::Now() - start);
+ LOCAL_HISTOGRAM_TIMES("DiskCache.CreateBlock", TimeTicks::Now() - start);
return true;
}
}
@@ -148,7 +148,7 @@ void BlockHeader::DeleteMapBlock(int index, int size) {
base::subtle::MemoryBarrier();
header_->num_entries--;
STRESS_DCHECK(header_->num_entries >= 0);
- HISTOGRAM_TIMES("DiskCache.DeleteBlock", TimeTicks::Now() - start);
+ LOCAL_HISTOGRAM_TIMES("DiskCache.DeleteBlock", TimeTicks::Now() - start);
}
// Note that this is a simplified version of DeleteMapBlock().
@@ -566,7 +566,8 @@ MappedFile* BlockFiles::FileForNewBlock(FileType block_type, int block_count) {
return NULL;
break;
}
- HISTOGRAM_TIMES("DiskCache.GetFileForNewBlock", TimeTicks::Now() - start);
+ LOCAL_HISTOGRAM_TIMES("DiskCache.GetFileForNewBlock",
+ TimeTicks::Now() - start);
return file;
}
« no previous file with comments | « net/disk_cache/blockfile/block_bitmaps_v3.cc ('k') | net/dns/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698