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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 1474213002: [PartitionAlloc] Annotate common Blink types for heap profiling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ctti
Patch Set: Created 5 years, 1 month 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/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 604bbf0605f44988c300df0365daff38bc959ade..8d856aa37fbed1f693a497702e43c948e6b8ed2a 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -110,7 +110,7 @@ static_assert(sizeof(Node) <= sizeof(SameSizeAsNode), "Node should stay small");
void* Node::operator new(size_t size)
{
ASSERT(isMainThread());
- return partitionAlloc(WTF::Partitions::nodePartition(), size, WTF_HEAP_PROFILER_TYPE_NAME(Node));
+ return partitionAlloc(WTF::Partitions::nodePartition(), size, "blink::Node");
}
void Node::operator delete(void* ptr)

Powered by Google App Engine
This is Rietveld 408576698