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

Unified Diff: runtime/vm/object_graph.h

Issue 483103003: Incoming references service request and UI. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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/object_graph.h
diff --git a/runtime/vm/object_graph.h b/runtime/vm/object_graph.h
index 580698d09460e61d7678941c4dc83364cf6d9ab8..22c4993ac82e7e37eb24b005fa38042d28459c04 100644
--- a/runtime/vm/object_graph.h
+++ b/runtime/vm/object_graph.h
@@ -81,6 +81,14 @@ class ObjectGraph : public StackResource {
// provided handle was the only way to reach the object), zero is returned.
intptr_t RetainingPath(Object* obj, const Array& path);
+ // Find the objects that reference 'obj'. Populates the provided array with
+ // pairs of (object pointing to 'obj', offset of pointer in words), as far as
+ // there is room. Returns the number of objects found.
+ //
+ // An object for which this function answers no inbound references might still
+ // be live due to references from the stack or embedder handles.
+ intptr_t InboundReferences(Object* obj, const Array& path);
koda 2014/08/21 18:21:20 Rename 'path'.
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ObjectGraph);
};

Powered by Google App Engine
This is Rietveld 408576698