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

Unified Diff: third_party/WebKit/Source/wtf/PartitionAllocator.h

Issue 1474213002: [PartitionAlloc] Annotate common Blink types for heap profiling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ctti
Patch Set: Remove redundancy from macro 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/wtf/PartitionAllocator.h
diff --git a/third_party/WebKit/Source/wtf/PartitionAllocator.h b/third_party/WebKit/Source/wtf/PartitionAllocator.h
index 08f0f43c9922fde6685e50d8b6c7c9807c6f3a57..29cf027434f276a576254df17c5bfd54eb4defbb 100644
--- a/third_party/WebKit/Source/wtf/PartitionAllocator.h
+++ b/third_party/WebKit/Source/wtf/PartitionAllocator.h
@@ -194,6 +194,11 @@ public:
}
};
+// Specializations for heap profiling, so type profiling of |char| is possible
+// even in official builds (because |char| makes up a large portion of the heap.)
+template <> char* PartitionAllocator::allocateVectorBacking<char>(size_t size);
+template <> char* PartitionAllocator::allocateExpandedVectorBacking<char>(size_t size);
+
} // namespace WTF
#define WTF_USE_ALLOCATOR(ClassName, Allocator) \

Powered by Google App Engine
This is Rietveld 408576698