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

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: Rebase two new histograms were added today Created 4 years, 10 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..194003948a6d8e64a5835d4e96486857bffad164 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 (*ReportPartitionAllocSizeFunction)(size_t);
+
// 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(ReportPartitionAllocSizeFunction);
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 ReportPartitionAllocSizeFunction m_reportSizeFunction;
};
} // namespace WTF

Powered by Google App Engine
This is Rietveld 408576698