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

Unified Diff: Source/core/loader/cache/MemoryCache.cpp

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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 | « Source/core/loader/cache/MemoryCache.h ('k') | Source/core/page/DOMTimer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/cache/MemoryCache.cpp
diff --git a/Source/core/loader/cache/MemoryCache.cpp b/Source/core/loader/cache/MemoryCache.cpp
index 9259a211a022ed4739f2f587f4566c2481874f10..509a5965cc9b6b347e974a0b2887c638eb848e0b 100644
--- a/Source/core/loader/cache/MemoryCache.cpp
+++ b/Source/core/loader/cache/MemoryCache.cpp
@@ -35,16 +35,12 @@
#include "ResourceHandle.h"
#include "SecurityOrigin.h"
#include "SecurityOriginHash.h"
-#include "WebCoreMemoryInstrumentation.h"
#include "WorkerContext.h"
#include "WorkerLoaderProxy.h"
#include "WorkerThread.h"
#include <stdio.h>
#include <wtf/CurrentTime.h>
#include <wtf/MathExtras.h>
-#include <wtf/MemoryInstrumentationHashMap.h>
-#include <wtf/MemoryInstrumentationVector.h>
-#include <wtf/MemoryObjectInfo.h>
#include <wtf/TemporaryChange.h>
#include <wtf/text/CString.h>
@@ -696,19 +692,6 @@ MemoryCache::Statistics MemoryCache::getStatistics()
return stats;
}
-void MemoryCache::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
-{
- MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::MemoryCacheStructures);
- memoryObjectInfo->setClassName("MemoryCache");
- info.addMember(m_resources, "resources");
- info.addMember(m_allResources, "allResources");
- info.addMember(m_liveDecodedResources, "liveDecodedResources");
-#if !ENABLE(CACHE_PARTITIONING)
- for (CachedResourceMap::const_iterator i = m_resources.begin(); i != m_resources.end(); ++i)
- info.addMember(i->value, "cachedResourceItem", WTF::RetainingPointer);
-#endif
-}
-
void MemoryCache::setDisabled(bool disabled)
{
m_disabled = disabled;
« no previous file with comments | « Source/core/loader/cache/MemoryCache.h ('k') | Source/core/page/DOMTimer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698