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

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

Issue 1652983005: Remove Enumeration Histograms from the Blink Platform API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_blink_histograms_5a
Patch Set: Fix misplaced bracket on android Created 4 years, 11 months 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/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

Powered by Google App Engine
This is Rietveld 408576698