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

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

Issue 1840103004: Introduce ThreadHeapStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: third_party/WebKit/Source/platform/heap/PersistentNode.cpp
diff --git a/third_party/WebKit/Source/platform/heap/PersistentNode.cpp b/third_party/WebKit/Source/platform/heap/PersistentNode.cpp
index f2d1e43a99422e05b0a8a80d502cc8b3bb3e71f8..329a0370df7d9394b8dc5fbec439def948f2ae43 100644
--- a/third_party/WebKit/Source/platform/heap/PersistentNode.cpp
+++ b/third_party/WebKit/Source/platform/heap/PersistentNode.cpp
@@ -51,7 +51,7 @@ void PersistentRegion::ensurePersistentNodeSlots(void* self, TraceCallback trace
// list of PersistentNodes.
void PersistentRegion::tracePersistentNodes(Visitor* visitor)
{
- size_t debugMarkedObjectSize = Heap::markedObjectSize();
+ size_t debugMarkedObjectSize = ProcessHeap::totalMarkedObjectSize();
base::debug::Alias(&debugMarkedObjectSize);
m_freeListHead = nullptr;
@@ -73,7 +73,7 @@ void PersistentRegion::tracePersistentNodes(Visitor* visitor)
} else {
node->tracePersistentNode(visitor);
++persistentCount;
- debugMarkedObjectSize = Heap::markedObjectSize();
+ debugMarkedObjectSize = ProcessHeap::totalMarkedObjectSize();
}
}
if (freeCount == PersistentNodeSlots::slotCount) {
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapTest.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698