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

Unified Diff: runtime/vm/service.cc

Issue 197663006: Heap maps: add VM service message. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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
Index: runtime/vm/service.cc
===================================================================
--- runtime/vm/service.cc (revision 33596)
+++ runtime/vm/service.cc (working copy)
@@ -1271,6 +1271,12 @@
}
+static bool HandleHeapMap(Isolate* isolate, JSONStream* js) {
+ isolate->heap()->PrintHeapMapToJSONStream(js);
+ return true;
+}
+
+
static IsolateMessageHandlerEntry isolate_handlers[] = {
{ "_echo", HandleIsolateEcho },
{ "", HandleIsolate },
@@ -1280,6 +1286,7 @@
{ "coverage", HandleCoverage },
{ "cpu", HandleCpu },
{ "debug", HandleDebug },
+ { "heapmap", HandleHeapMap },
{ "libraries", HandleLibraries },
{ "objects", HandleObjects },
{ "profile", HandleProfile },
« runtime/vm/pages.cc ('K') | « runtime/vm/raw_object.h ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698