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

Unified Diff: runtime/vm/malloc_hooks.h

Issue 2647283004: Reintroducing MallocHooks changes with fix for hooks being called when in execvpe after a fork whil… (Closed)
Patch Set: Reintroducing MallocHooks changes with fix for hooks being called when in execvpe after a fork whil… Created 3 years, 11 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 | « runtime/vm/hash_map_test.cc ('k') | runtime/vm/malloc_hooks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/malloc_hooks.h
diff --git a/runtime/vm/malloc_hooks.h b/runtime/vm/malloc_hooks.h
index ae09402388d4fb9b7af1b932b4d78e3f2f6811d7..d741a5f63757653f576f94136b48acc4c7a2b818 100644
--- a/runtime/vm/malloc_hooks.h
+++ b/runtime/vm/malloc_hooks.h
@@ -10,7 +10,13 @@
namespace dart {
class MallocHooks {
- static void Init();
+ public:
+ static void InitOnce();
+ static void TearDown();
+ static void ResetStats();
+
+ static intptr_t allocation_count();
+ static intptr_t heap_allocated_memory_in_bytes();
private:
DISALLOW_ALLOCATION();
« no previous file with comments | « runtime/vm/hash_map_test.cc ('k') | runtime/vm/malloc_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698