Chromium Code Reviews| 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 24e50d39162737cb3dbff7ead00bbc2d5718c6aa..62b17e6f4200c768cece208d174090e56ff1669b 100644 |
| --- a/third_party/WebKit/Source/wtf/Partitions.h |
| +++ b/third_party/WebKit/Source/wtf/Partitions.h |
| @@ -40,11 +40,13 @@ namespace WTF { |
| class WTF_EXPORT Partitions { |
| public: |
| + typedef void (*MaxObservedSizeFunction)(size_t sample); |
|
haraken
2016/02/03 00:37:57
Remove |sample|.
haraken
2016/02/03 00:37:57
ReportPartitionAllocSizeFunction ?
dtapuska
2016/02/03 14:43:11
Done.
dtapuska
2016/02/03 14:43:11
Done.
|
| + |
| // Name of allocator used by tracing for marking sub-allocations while take |
| // memory snapshots. |
| static const char* const kAllocatedObjectPoolName; |
| - static void initialize(HistogramEnumerationFunction); |
| + static void initialize(MaxObservedSizeFunction); |
| static void shutdown(); |
| ALWAYS_INLINE static PartitionRootGeneric* bufferPartition() |
| { |
| @@ -160,7 +162,7 @@ private: |
| static SizeSpecificPartitionAllocator<3328> m_nodeAllocator; |
| #endif |
| static SizeSpecificPartitionAllocator<1024> m_layoutAllocator; |
| - static HistogramEnumerationFunction m_histogramEnumeration; |
| + static MaxObservedSizeFunction m_maxSizeFunction; |
| }; |
| } // namespace WTF |