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

Unified Diff: third_party/WebKit/Source/core/fetch/MemoryCache.h

Issue 2299603002: MemoryCache: Remove MEMORY_CACHE_STATS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WeakMemoryCache_revert
Patch Set: Rebase Created 4 years, 3 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 | « no previous file | third_party/WebKit/Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/MemoryCache.h
diff --git a/third_party/WebKit/Source/core/fetch/MemoryCache.h b/third_party/WebKit/Source/core/fetch/MemoryCache.h
index 7027b9e89a059b226c6554bf919e77a58f82fdec..11f97d5407b4619b924a23d7b020ec2ab43d9c7d 100644
--- a/third_party/WebKit/Source/core/fetch/MemoryCache.h
+++ b/third_party/WebKit/Source/core/fetch/MemoryCache.h
@@ -56,9 +56,6 @@ class ExecutionContext;
// -------|-----+++++++++++++++|
// -------|-----+++++++++++++++|+++++
-// Enable this macro to periodically log information about the memory cache.
-#undef MEMORY_CACHE_STATS
-
enum UpdateReason {
UpdateForAccess,
UpdateForPropertyChange
@@ -232,11 +229,6 @@ private:
MemoryCacheLRUList* lruListFor(unsigned accessCount, size_t);
-#ifdef MEMORY_CACHE_STATS
- void dumpStats(TimerBase*);
- void dumpLRULists(bool includeLive) const;
-#endif
-
// Calls to put the cached resource into and out of LRU lists.
void insertInLRUList(MemoryCacheEntry*, MemoryCacheLRUList*);
void removeFromLRUList(MemoryCacheEntry*, MemoryCacheLRUList*);
@@ -295,9 +287,6 @@ private:
ResourceMapIndex m_resourceMaps;
friend class MemoryCacheTest;
-#ifdef MEMORY_CACHE_STATS
- Timer<MemoryCache> m_statsTimer;
-#endif
};
// Returns the global cache.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698