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

Unified Diff: Source/wtf/WTF.cpp

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.cpp
diff --git a/Source/wtf/WTF.cpp b/Source/wtf/WTF.cpp
index d3ec16099d26dfdd6f911c4b2d618734f13bcb77..76a632b4b8a153ad6747ad4b343a69ec0fa82a99 100644
--- a/Source/wtf/WTF.cpp
+++ b/Source/wtf/WTF.cpp
@@ -42,7 +42,7 @@ extern void initializeThreading();
bool s_initialized;
bool s_shutdown;
-void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction)
+void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction, HistogramEnumerationFunction histogramEnumerationFunction)
{
// WTF, and Blink in general, cannot handle being re-initialized, even if shutdown first.
// Make that explicit here.
@@ -51,7 +51,7 @@ void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncr
s_initialized = true;
setCurrentTimeFunction(currentTimeFunction);
setMonotonicallyIncreasingTimeFunction(monotonicallyIncreasingTimeFunction);
- Partitions::initialize();
+ Partitions::initialize(histogramEnumerationFunction);
initializeThreading();
}

Powered by Google App Engine
This is Rietveld 408576698