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

Unified Diff: runtime/vm/object_graph.cc

Issue 292663012: Retaining path in Observatory. (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 | « runtime/vm/object_graph.h ('k') | runtime/vm/object_graph_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_graph.cc
===================================================================
--- runtime/vm/object_graph.cc (revision 36435)
+++ runtime/vm/object_graph.cc (working copy)
@@ -223,13 +223,14 @@
return kProceed;
} else {
HANDLESCOPE(Isolate::Current());
- Object& parent = Object::Handle();
- for (length_ = 0; it->MoveToParent(); ++length_) {
+ Object& current = Object::Handle();
+ do {
if (!path_.IsNull() && length_ < path_.Length()) {
- parent = it->Get();
- path_.SetAt(length_, parent);
+ current = it->Get();
+ path_.SetAt(length_, current);
}
- }
+ ++length_;
+ } while (it->MoveToParent());
return kAbort;
}
}
« no previous file with comments | « runtime/vm/object_graph.h ('k') | runtime/vm/object_graph_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698