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

Unified Diff: runtime/vm/heap.h

Issue 11428067: Merge the Merlin heap tracing to top-of-trunk. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address remaining review comments Created 8 years 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/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index ae47fea55d303145731f1b16e4ee2c034154e785..3b692ecfd8a518236605f522778c57f6b0cea0df 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;
@@ -182,6 +187,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_;

Powered by Google App Engine
This is Rietveld 408576698