| Index: third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp
|
| diff --git a/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp b/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp
|
| index 18583ccf19d469834b67c0ad7c637cbd55205f71..188325acbdb1e955602cf3ca46f9dfbcc562e676 100644
|
| --- a/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp
|
| @@ -21,14 +21,14 @@ void dumpMemoryTotals(blink::WebProcessMemoryDump* memoryDump)
|
| {
|
| String dumpName = String::format("blink_gc");
|
| WebMemoryAllocatorDump* allocatorDump = memoryDump->createMemoryAllocatorDump(dumpName);
|
| - allocatorDump->addScalar("size", "bytes", Heap::allocatedSpace());
|
| + allocatorDump->addScalar("size", "bytes", Heap::totalAllocatedSpace());
|
|
|
| dumpName.append("/allocated_objects");
|
| WebMemoryAllocatorDump* objectsDump = memoryDump->createMemoryAllocatorDump(dumpName);
|
|
|
| // Heap::markedObjectSize() can be underestimated if we're still in the
|
| // process of lazy sweeping.
|
| - objectsDump->addScalar("size", "bytes", Heap::allocatedObjectSize() + Heap::markedObjectSize());
|
| + objectsDump->addScalar("size", "bytes", Heap::totalAllocatedObjectSize() + Heap::totalMarkedObjectSize());
|
| }
|
|
|
| void reportAllocation(Address address, size_t size, const char* typeName)
|
|
|