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

Unified Diff: runtime/vm/object_graph.h

Issue 286203015: ObjectGraph::RetainingPath (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | « no previous file | 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
===================================================================
--- runtime/vm/object_graph.h (revision 36049)
+++ runtime/vm/object_graph.h (working copy)
@@ -68,6 +68,16 @@
// The number of bytes retained by the set of all objects of the given class.
intptr_t SizeRetainedByClass(intptr_t class_id);
+ // Finds some retaining path from the isolate roots to 'obj'. Populates the
+ // provided array, starting with a direct parent of 'obj', up to the smaller
+ // of the length of the array and the length of the path. Returns the length
+ // of the path. A null input array behaves like a zero-length input array.
+ //
+ // To break the trivial path, the handle 'obj' is temporarily cleared during
+ // the search, but restored before returning. If no path is found (i.e., the
+ // provided handle was the only way to reach the object), zero is returned.
+ intptr_t RetainingPath(Object* obj, const Array& path);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ObjectGraph);
};
« no previous file with comments | « no previous file | runtime/vm/object_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698