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

Unified Diff: base/allocator/winheap_stubs_win.h

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/winheap_stubs_win.h
diff --git a/base/allocator/winheap_stubs_win.h b/base/allocator/winheap_stubs_win.h
index 4422283c901433a946d57bb0aa559268ce7552a6..422dfe0da762049b6cb51c788ac3338a982fe721 100644
--- a/base/allocator/winheap_stubs_win.h
+++ b/base/allocator/winheap_stubs_win.h
@@ -21,9 +21,13 @@ extern bool g_is_win_shim_layer_initialized;
// Thin wrappers to implement the standard C allocation semantics on the
// CRT's Windows heap.
void* WinHeapMalloc(size_t size);
-void WinHeapFree(void* size);
+void WinHeapFree(void* ptr);
void* WinHeapRealloc(void* ptr, size_t size);
+// Returns a lower-bound estimate for the full amount of memory consumed by the
+// the allocation |ptr|.
+size_t WinHeapGetSizeEstimate(void* ptr);
+
// Call the new handler, if one has been set.
// Returns true on successfully calling the handler, false otherwise.
bool WinCallNewHandler(size_t size);

Powered by Google App Engine
This is Rietveld 408576698