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

Unified Diff: runtime/vm/malloc_hooks.h

Issue 2680213002: Updated MallocHooks to collect stack traces when memory is allocated. (Closed)
Patch Set: Rebased and performed refactoring Created 3 years, 10 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 78132c756e13f9d9f04cd91e9aed0f64ca3eee09..a448b07b65901c26900ede1c1e2257924cbf39e4 100644
--- a/runtime/vm/malloc_hooks.h
+++ b/runtime/vm/malloc_hooks.h
@@ -11,14 +11,17 @@
namespace dart {
class JSONObject;
+class Sample;
class MallocHooks : public AllStatic {
public:
static void InitOnce();
static void TearDown();
+ static bool ProfilingEnabled();
static void ResetStats();
static bool Active();
static void PrintToJSONObject(JSONObject* jsobj);
+ static Sample* GetSample(const void* ptr);
static intptr_t allocation_count();
static intptr_t heap_allocated_memory_in_bytes();

Powered by Google App Engine
This is Rietveld 408576698