| Index: third_party/WebKit/Source/wtf/Partitions.h
|
| diff --git a/third_party/WebKit/Source/wtf/Partitions.h b/third_party/WebKit/Source/wtf/Partitions.h
|
| index 276380472bd64b9e5beed85d8c9c172309b45d2d..26cba27c280e228567ff370a2216607cadec745e 100644
|
| --- a/third_party/WebKit/Source/wtf/Partitions.h
|
| +++ b/third_party/WebKit/Source/wtf/Partitions.h
|
| @@ -98,6 +98,9 @@ public:
|
|
|
| static void dumpMemoryStats(bool isLightDump, PartitionStatsDumper*);
|
|
|
| + static void setAllocatorPoolNameForTracing(const char* name) { m_allocatorPoolNameForTracing = name; }
|
| + static const char* allocatorPoolNameForTracing() { return m_allocatorPoolNameForTracing; }
|
| +
|
| ALWAYS_INLINE static void* bufferMalloc(size_t n)
|
| {
|
| return partitionAllocGeneric(bufferPartition(), n);
|
| @@ -143,6 +146,9 @@ private:
|
| static SizeSpecificPartitionAllocator<3328> m_nodeAllocator;
|
| static SizeSpecificPartitionAllocator<1024> m_layoutAllocator;
|
| static HistogramEnumerationFunction m_histogramEnumeration;
|
| +
|
| + // Stores the allocator name used for tracing allocations from the partitions.
|
| + static const char* m_allocatorPoolNameForTracing;
|
| };
|
|
|
| } // namespace WTF
|
|
|