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

Unified Diff: base/allocator/allocator_extension_thunks.cc

Issue 10825250: Expose memory allocator internal stats and properties. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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: base/allocator/allocator_extension_thunks.cc
diff --git a/base/allocator/allocator_extension_thunks.cc b/base/allocator/allocator_extension_thunks.cc
index 0e97f6af95bc6f9638fa3136fc9418c89c53955a..541b371a9c22b0d502e80a1b9fb644a6806baa77 100644
--- a/base/allocator/allocator_extension_thunks.cc
+++ b/base/allocator/allocator_extension_thunks.cc
@@ -17,9 +17,18 @@ namespace thunks {
// can depend on it. This file can't depend on anything else in base, including
// logging.
+static GetPropertyFunction* g_get_property_function = NULL;
static GetStatsFunction* g_get_stats_function = NULL;
static ReleaseFreeMemoryFunction* g_release_free_memory_function = NULL;
+void SetGetPropertyFunction(GetPropertyFunction* get_property_function) {
+ g_get_property_function = get_property_function;
+}
+
+GetPropertyFunction* GetGetPropertyFunction() {
+ return g_get_property_function;
+}
+
void SetGetStatsFunction(GetStatsFunction* get_stats_function) {
g_get_stats_function = get_stats_function;
}

Powered by Google App Engine
This is Rietveld 408576698