| Index: Source/wtf/Partitions.h
|
| diff --git a/Source/wtf/Partitions.h b/Source/wtf/Partitions.h
|
| index fc411616fccc2217b760e76ba251a9846ff87291..627f39c4608e583d5bdab3d959258fc30be1f7a6 100644
|
| --- a/Source/wtf/Partitions.h
|
| +++ b/Source/wtf/Partitions.h
|
| @@ -32,13 +32,14 @@
|
| #define Partitions_h
|
|
|
| #include "wtf/PartitionAlloc.h"
|
| +#include "wtf/WTF.h"
|
| #include "wtf/WTFExport.h"
|
|
|
| namespace WTF {
|
|
|
| class WTF_EXPORT Partitions {
|
| public:
|
| - static void initialize();
|
| + static void initialize(HistogramEnumerationFunction = nullptr);
|
| static void shutdown();
|
| ALWAYS_INLINE static PartitionRootGeneric* getBufferPartition()
|
| {
|
| @@ -87,12 +88,15 @@ public:
|
| return totalSize;
|
| }
|
|
|
| + static void reportMemoryUsageHistogram();
|
| +
|
| private:
|
| static bool s_initialized;
|
| static PartitionAllocatorGeneric m_fastMallocAllocator;
|
| static PartitionAllocatorGeneric m_bufferAllocator;
|
| static SizeSpecificPartitionAllocator<3328> m_objectModelAllocator;
|
| static SizeSpecificPartitionAllocator<1024> m_renderingAllocator;
|
| + static HistogramEnumerationFunction m_histogramEnumeration;
|
| };
|
|
|
| } // namespace WTF
|
|
|