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

Unified Diff: runtime/vm/service.cc

Issue 812123002: Add option to get only reference. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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/service_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
===================================================================
--- runtime/vm/service.cc (revision 42442)
+++ runtime/vm/service.cc (working copy)
@@ -2357,6 +2357,7 @@
PrintError(js, "Must specify address: address/" Px ".", kExampleAddr);
return true;
}
+ bool ref = js->HasOption("ref") && js->OptionIs("ref", "true");
Object& object = Object::Handle(isolate);
{
NoGCScope no_gc;
@@ -2363,7 +2364,7 @@
ContainsAddressVisitor visitor(isolate, addr);
object = isolate->heap()->FindObject(&visitor);
}
- object.PrintJSON(js, false);
+ object.PrintJSON(js, ref);
return true;
}
« no previous file with comments | « no previous file | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698