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

Unified Diff: base/allocator/allocator_extension_thunks.h

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.h
diff --git a/base/allocator/allocator_extension_thunks.h b/base/allocator/allocator_extension_thunks.h
index 4a46b450dbd5e04d64aee9129837f5ef93841e7d..8801984fad765ef45b29b8ffb468bd28ecd6e325 100644
--- a/base/allocator/allocator_extension_thunks.h
+++ b/base/allocator/allocator_extension_thunks.h
@@ -5,6 +5,8 @@
#ifndef BASE_ALLOCATOR_ALLOCATOR_THUNKS_EXTENSION_H
#define BASE_ALLOCATOR_ALLOCATOR_THUNKS_EXTENSION_H
+#include <stddef.h> // for size_t
+
namespace base {
namespace allocator {
namespace thunks {
@@ -13,6 +15,10 @@ namespace thunks {
// new allocator extension from a specific allocator implementation to base.
// See allocator_extension.h to see the interface that base exports.
+typedef bool GetPropertyFunction(const char*, size_t*);
jar (doing other things) 2012/08/11 03:39:46 nit: I think you should provide variable names for
alexeif 2012/08/11 11:19:55 Done.
+void SetGetPropertyFunction(GetPropertyFunction* get_property_function);
+GetPropertyFunction* GetGetPropertyFunction();
+
typedef void GetStatsFunction(char*, int);
void SetGetStatsFunction(GetStatsFunction* get_stats_function);
GetStatsFunction* GetGetStatsFunction();

Powered by Google App Engine
This is Rietveld 408576698