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

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: Mark template specialisations as WTF_EXPORT Created 5 years 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/wtf/Allocator.h ('k') | third_party/WebKit/Source/wtf/PartitionAllocator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bf6bcb061b0c4f5df52550ce4e59df9f0e33d7db 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 <> WTF_EXPORT char* PartitionAllocator::allocateVectorBacking<char>(size_t size);
+template <> WTF_EXPORT char* PartitionAllocator::allocateExpandedVectorBacking<char>(size_t size);
+
} // namespace WTF
#define WTF_USE_ALLOCATOR(ClassName, Allocator) \
« no previous file with comments | « third_party/WebKit/Source/wtf/Allocator.h ('k') | third_party/WebKit/Source/wtf/PartitionAllocator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698