Index: runtime/vm/object_graph.h |
diff --git a/runtime/vm/object_graph.h b/runtime/vm/object_graph.h |
index 580698d09460e61d7678941c4dc83364cf6d9ab8..5822c7dec1dd2c26289503d94baeac0f9fd8f799 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& references); |
+ |
private: |
DISALLOW_IMPLICIT_CONSTRUCTORS(ObjectGraph); |
}; |