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

Unified Diff: runtime/vm/malloc_hooks.h

Issue 2644903003: Implemented basic heap memory allocation tracking in MallocHooks using hooks registered with tcmall… (Closed)
Patch Set: 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
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();

Powered by Google App Engine
This is Rietveld 408576698