Index: runtime/vm/service.cc |
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
index 9893d823b945de9109f0a124d295dbe3301abe28..8d62cb01fae79172a9df01bb537a9277ed541fd9 100644 |
--- a/runtime/vm/service.cc |
+++ b/runtime/vm/service.cc |
@@ -1050,8 +1050,15 @@ static bool HandleCoverage(Isolate* isolate, JSONStream* js) { |
} |
+static bool HandleAllocationProfile(Isolate* isolate, JSONStream* js) { |
+ isolate->class_table()->AllocationProfilePrintToJSONStream(js); |
+ return true; |
+} |
+ |
+ |
static IsolateMessageHandlerEntry isolate_handlers[] = { |
{ "_echo", HandleIsolateEcho }, |
+ { "allocationprofile", HandleAllocationProfile }, |
{ "classes", HandleClasses }, |
{ "code", HandleCode }, |
{ "coverage", HandleCoverage }, |