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); |
}; |