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

Unified Diff: base/allocator/allocator_extension.cc

Issue 1408403004: [tracing] Fix resident size of malloc dump provider when tcmalloc is used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit. Created 5 years, 2 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
« no previous file with comments | « base/allocator/allocator_extension.h ('k') | base/allocator/allocator_extension_thunks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/allocator_extension.cc
diff --git a/base/allocator/allocator_extension.cc b/base/allocator/allocator_extension.cc
index 83e460ac82bc899317b0634ac3a24afbcdb44cbc..bcfe89beb0ea7339bc52b38621bb3d5094110b4f 100644
--- a/base/allocator/allocator_extension.cc
+++ b/base/allocator/allocator_extension.cc
@@ -52,5 +52,12 @@ void SetReleaseFreeMemoryFunction(
thunks::SetReleaseFreeMemoryFunction(release_free_memory_function);
}
+void SetGetNumericPropertyFunction(
+ thunks::GetNumericPropertyFunction get_numeric_property_function) {
+ DCHECK_EQ(thunks::GetGetNumericPropertyFunction(),
+ reinterpret_cast<thunks::GetNumericPropertyFunction>(NULL));
+ thunks::SetGetNumericPropertyFunction(get_numeric_property_function);
+}
+
} // namespace allocator
} // namespace base
« no previous file with comments | « base/allocator/allocator_extension.h ('k') | base/allocator/allocator_extension_thunks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698