Chromium Code Reviews| 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..8e7a786189589063535b63f873377f33b9e326d9 100644 |
| --- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp |
| +++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp |
| @@ -1479,10 +1479,7 @@ void ThreadState::takeSnapshot(SnapshotType type) |
| size_t totalLiveSize = 0; |
| size_t totalDeadSize = 0; |
| for (size_t gcInfoIndex = 1; gcInfoIndex <= GCInfoTable::gcInfoIndex(); ++gcInfoIndex) { |
|
Primiano Tucci (use gerrit)
2016/02/19 11:58:04
I think you want to remove this for loop entirely
hajimehoshi
2016/02/19 12:15:44
I was thinking I'll remove this later, but you are
haraken
2016/02/19 12:19:39
BTW, if we remove the loop, won't we lose the info
|
| - String dumpName = classesDumpName + String::format("/%lu_", static_cast<unsigned long>(gcInfoIndex)); |
| -#if ENABLE(DETAILED_MEMORY_INFRA) |
| - dumpName.append(Heap::gcInfo(gcInfoIndex)->className()); |
| -#endif |
| + String dumpName = classesDumpName + String::format("/%lu", static_cast<unsigned long>(gcInfoIndex)); |
| WebMemoryAllocatorDump* classDump = BlinkGCMemoryDumpProvider::instance()->createMemoryAllocatorDumpForCurrentGC(dumpName); |
| classDump->addScalar("live_count", "objects", info.liveCount[gcInfoIndex]); |
| classDump->addScalar("dead_count", "objects", info.deadCount[gcInfoIndex]); |