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

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

Issue 1853423003: Fix incorrect blink_gc memory dump caused by r383965 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « third_party/WebKit/Source/platform/heap/Heap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698