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

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 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
« no previous file with comments | « runtime/vm/handles_impl.h ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « runtime/vm/handles_impl.h ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698