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

Unified Diff: Source/wtf/WTF.h

Issue 1053793004: Add a UseCounter that measures the amount of memory used in PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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: Source/wtf/WTF.h
diff --git a/Source/wtf/WTF.h b/Source/wtf/WTF.h
index c172996d415643ed56617df7aae8834437cc70e5..1f14c68abcc983c9fbe60871bf5a47ea341b8d53 100644
--- a/Source/wtf/WTF.h
+++ b/Source/wtf/WTF.h
@@ -37,8 +37,10 @@
namespace WTF {
+typedef void(*HistogramEnumerationFunction)(const char* name, int sample, int boundaryValue);
+
// This function must be called exactly once from the main thread before using anything else in WTF.
-WTF_EXPORT void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction);
+WTF_EXPORT void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction, HistogramEnumerationFunction);
WTF_EXPORT void shutdown();
WTF_EXPORT bool isShutdown();
« Source/wtf/Partitions.cpp ('K') | « Source/wtf/Partitions.cpp ('k') | Source/wtf/WTF.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698