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

Unified Diff: base/allocator/allocator_shim_default_dispatch_to_winheap.cc

Issue 2163783003: Implement a ScopedThreadHeapUsage class to allow profiling per-thread heap usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shim-default
Patch Set: Fix a brain****, may even compile now. Created 4 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_shim_default_dispatch_to_winheap.cc
diff --git a/base/allocator/allocator_shim_default_dispatch_to_winheap.cc b/base/allocator/allocator_shim_default_dispatch_to_winheap.cc
index 4d5a27429a33e16bf18eabc2a432fb2c0882f0eb..2df3fdf5fef99cf63bcbe6317e6651dd5bda0ac8 100644
--- a/base/allocator/allocator_shim_default_dispatch_to_winheap.cc
+++ b/base/allocator/allocator_shim_default_dispatch_to_winheap.cc
@@ -47,10 +47,19 @@ void DefaultWinHeapFreeImpl(const AllocatorDispatch*, void* address) {
base::allocator::WinHeapFree(address);
}
+size_t DefaultWinHeapGetSizeEstimateImpl(const AllocatorDispatch*,
+ void* address) {
+ return base::allocator::WinHeapGetSizeEstimate(address);
+}
+
} // namespace
const AllocatorDispatch AllocatorDispatch::default_dispatch = {
- &DefaultWinHeapMallocImpl, &DefaultWinHeapCallocImpl,
- &DefaultWinHeapMemalignImpl, &DefaultWinHeapReallocImpl,
- &DefaultWinHeapFreeImpl, nullptr, /* next */
+ &DefaultWinHeapMallocImpl,
+ &DefaultWinHeapCallocImpl,
+ &DefaultWinHeapMemalignImpl,
+ &DefaultWinHeapReallocImpl,
+ &DefaultWinHeapFreeImpl,
+ &DefaultWinHeapGetSizeEstimateImpl,
+ nullptr, /* next */
};

Powered by Google App Engine
This is Rietveld 408576698