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

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: build 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
« no previous file with comments | « runtime/bin/vmservice/observatory/test/inbound_references_test.dart ('k') | runtime/vm/object_graph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « runtime/bin/vmservice/observatory/test/inbound_references_test.dart ('k') | runtime/vm/object_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698