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

Unified Diff: net/disk_cache/rankings.cc

Issue 42682: Disk Cache: Second pass (and final) to allow multiple instances... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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/histogram_macros.h ('k') | net/disk_cache/stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/rankings.cc
===================================================================
--- net/disk_cache/rankings.cc (revision 12629)
+++ net/disk_cache/rankings.cc (working copy)
@@ -8,6 +8,7 @@
#include "net/disk_cache/backend_impl.h"
#include "net/disk_cache/entry_impl.h"
#include "net/disk_cache/errors.h"
+#include "net/disk_cache/histogram_macros.h"
using base::Time;
@@ -234,7 +235,7 @@
EntryImpl* cache_entry =
reinterpret_cast<EntryImpl*>(rankings->Data()->pointer);
rankings->SetData(cache_entry->rankings()->Data());
- UMA_HISTOGRAM_TIMES("DiskCache.GetRankings", Time::Now() - start);
+ CACHE_UMA(AGE_MS, "GetRankings", 0, start);
return true;
}
@@ -391,7 +392,7 @@
Time start = Time::Now();
Remove(node, list);
Insert(node, modified, list);
- UMA_HISTOGRAM_TIMES("DiskCache.UpdateRank", Time::Now() - start);
+ CACHE_UMA(AGE_MS, "UpdateRank", 0, start);
}
void Rankings::CompleteTransaction() {
« no previous file with comments | « net/disk_cache/histogram_macros.h ('k') | net/disk_cache/stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698