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

Unified Diff: runtime/vm/visitor.h

Issue 10452006: Implement a heap profiler for the Dart managed heap. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address final review comments Created 8 years, 6 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
« no previous file with comments | « runtime/vm/unicode.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/visitor.h
diff --git a/runtime/vm/visitor.h b/runtime/vm/visitor.h
index 3d9ab5dcf8b1e5b6a474bdace191056f80e61983..cdd0c5bd03e0aa5c56116999f1fddd3e71ac5c58 100644
--- a/runtime/vm/visitor.h
+++ b/runtime/vm/visitor.h
@@ -38,6 +38,16 @@ class ObjectPointerVisitor {
};
+// An object visitor interface.
+class ObjectVisitor {
+ public:
+ virtual ~ObjectVisitor() {}
+
+ // Invoked for each object.
+ virtual void VisitObject(RawObject* obj) = 0;
+};
+
+
// An object finder visitor interface.
class FindObjectVisitor {
public:
« no previous file with comments | « runtime/vm/unicode.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698