Index: base/allocator/allocator_extension.h |
diff --git a/base/allocator/allocator_extension.h b/base/allocator/allocator_extension.h |
index dda0fd9dcfb40f6c53783a6a952ec428c4e5ab06..de3119f85e66609f9ad0f7c97a29f6d326993331 100644 |
--- a/base/allocator/allocator_extension.h |
+++ b/base/allocator/allocator_extension.h |
@@ -14,13 +14,14 @@ |
namespace base { |
namespace allocator { |
-// Request the allocator to report value of its internal state variable. |
+// Request the allocator to report value of its waste memory size. |
+// Waste size corresponds to memory that has been allocated from the OS but |
+// not passed up to the application. It e.g. includes memory retained by free |
+// lists, internal data, chunks padding, etc. |
// |
-// |name| name of the variable |
-// |value| pointer to the returned value, must be not NULL. |
-// Returns true if the value has been returned, false if a variable with such |
-// name does not exist. |
-BASE_EXPORT bool GetProperty(const char* name, size_t* value); |
+// |size| pointer to the returned value, must be not NULL. |
+// Returns true if the value has been returned, false otherwise. |
+BASE_EXPORT bool GetAllocatorWasteSize(size_t* size); |
// Request that the allocator print a human-readable description of the current |
// state of the allocator into a null-terminated string in the memory segment |
@@ -43,8 +44,8 @@ BASE_EXPORT void ReleaseFreeMemory(); |
// No threading promises are made. The caller is responsible for making sure |
// these pointers are set before any other threads attempt to call the above |
// functions. |
-BASE_EXPORT void SetGetPropertyFunction( |
- thunks::GetPropertyFunction get_property_function); |
+BASE_EXPORT void SetGetAllocatorWasteSizeFunction( |
+ thunks::GetAllocatorWasteSizeFunction get_allocator_waste_size_function); |
BASE_EXPORT void SetGetStatsFunction( |
thunks::GetStatsFunction get_stats_function); |