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

Unified Diff: Source/web/WebKit.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/web/WebKit.cpp
diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp
index 543e34b2bfd25b726021c5eb8e7bb9069fe05e03..a7826f1701b337b009058946526f1d82ffacf1d9 100644
--- a/Source/web/WebKit.cpp
+++ b/Source/web/WebKit.cpp
@@ -143,6 +143,11 @@ static double monotonicallyIncreasingTimeFunction()
return Platform::current()->monotonicallyIncreasingTime();
}
+static void histogramEnumerationFunction(const char* name, int sample, int boundaryValue)
+{
+ Platform::current()->histogramEnumeration(name, sample, boundaryValue);
+}
+
static void cryptographicallyRandomValues(unsigned char* buffer, size_t length)
{
Platform::current()->cryptographicallyRandomValues(buffer, length);
@@ -162,7 +167,7 @@ void initializeWithoutV8(Platform* platform)
Platform::initialize(platform);
WTF::setRandomSource(cryptographicallyRandomValues);
- WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction);
+ WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction, histogramEnumerationFunction);
WTF::initializeMainThread(callOnMainThreadFunction);
Heap::init();

Powered by Google App Engine
This is Rietveld 408576698