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

Unified Diff: third_party/WebKit/Source/platform/heap/ThreadState.cpp

Issue 1714523006: Refactoring: Remove DETAILED_MEMORY_INFRA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove spamming info Created 4 years, 10 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 | « third_party/WebKit/Source/platform/heap/GCInfo.h ('k') | third_party/WebKit/Source/platform/heap/Visitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/ThreadState.cpp
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
index ba95db76feddaf97e8bc640c2959b2285c123e41..3d4af7efb9837365ec08897f5d8e4fceba6f3272 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -1479,16 +1479,6 @@ void ThreadState::takeSnapshot(SnapshotType type)
size_t totalLiveSize = 0;
size_t totalDeadSize = 0;
for (size_t gcInfoIndex = 1; gcInfoIndex <= GCInfoTable::gcInfoIndex(); ++gcInfoIndex) {
- String dumpName = classesDumpName + String::format("/%lu_", static_cast<unsigned long>(gcInfoIndex));
-#if ENABLE(DETAILED_MEMORY_INFRA)
- dumpName.append(Heap::gcInfo(gcInfoIndex)->className());
-#endif
- WebMemoryAllocatorDump* classDump = BlinkGCMemoryDumpProvider::instance()->createMemoryAllocatorDumpForCurrentGC(dumpName);
- classDump->addScalar("live_count", "objects", info.liveCount[gcInfoIndex]);
- classDump->addScalar("dead_count", "objects", info.deadCount[gcInfoIndex]);
- classDump->addScalar("live_size", "bytes", info.liveSize[gcInfoIndex]);
- classDump->addScalar("dead_size", "bytes", info.deadSize[gcInfoIndex]);
-
totalLiveCount += info.liveCount[gcInfoIndex];
totalDeadCount += info.deadCount[gcInfoIndex];
totalLiveSize += info.liveSize[gcInfoIndex];
« no previous file with comments | « third_party/WebKit/Source/platform/heap/GCInfo.h ('k') | third_party/WebKit/Source/platform/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698