Index: runtime/vm/heap.h |
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h |
index c46664257cd0591a3ad6964ca04aadbfa721ecec..adb319c64b78fdc579f0824a59c690378686c728 100644 |
--- a/runtime/vm/heap.h |
+++ b/runtime/vm/heap.h |
@@ -15,6 +15,7 @@ |
namespace dart { |
// Forward declarations. |
+class HeapTrace; |
class Isolate; |
class ObjectPointerVisitor; |
class ObjectSet; |
@@ -148,6 +149,10 @@ class Heap { |
// Verify that all pointers in the heap point to the heap. |
bool Verify() const; |
+ // Accessor function to get the HeapTrace used for tracing. There |
+ // should only ever be one of these per isolate |
+ HeapTrace* trace() const { return heap_trace_; } |
+ |
// Print heap sizes. |
void PrintSizes() const; |
@@ -183,6 +188,9 @@ class Heap { |
Scavenger* new_space_; |
PageSpace* old_space_; |
+ // The active heap trace. |
+ HeapTrace* heap_trace_; |
+ |
// This heap is in read-only mode: No allocation is allowed. |
bool read_only_; |