| Index: third_party/WebKit/Source/platform/heap/Heap.cpp
|
| diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
|
| index 1419b90c38caacd86c18219008a628dcfd3b3c24..cb41196d3882fa8258cdde7a06406e22566b36eb 100644
|
| --- a/third_party/WebKit/Source/platform/heap/Heap.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
|
| @@ -112,6 +112,12 @@ void ProcessHeap::init()
|
| s_isLowEndDevice = base::SysInfo::IsLowEndDevice();
|
| }
|
|
|
| +void ProcessHeap::resetHeapCounters()
|
| +{
|
| + s_totalAllocatedObjectSize = 0;
|
| + s_totalMarkedObjectSize = 0;
|
| +}
|
| +
|
| void Heap::init()
|
| {
|
| ThreadState::init();
|
| @@ -688,6 +694,7 @@ void Heap::resetHeapCounters()
|
|
|
| Heap::reportMemoryUsageForTracing();
|
|
|
| + ProcessHeap::resetHeapCounters();
|
| Heap::heapStats().reset();
|
| for (ThreadState* state : ThreadState::attachedThreads())
|
| state->resetHeapCounters();
|
|
|