Chromium Code Reviews| Index: runtime/vm/service.cc |
| diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
| index 35715e8613fc9391c8122a01920f1320ae0fe8ce..961e1af57000c688b4415ba9b50139665f2d1a32 100644 |
| --- a/runtime/vm/service.cc |
| +++ b/runtime/vm/service.cc |
| @@ -1044,11 +1044,18 @@ static bool HandleProfile(Isolate* isolate, JSONStream* js) { |
| } |
| +static bool HandleAllocationProfile(Isolate* isolate, JSONStream* js) { |
| + isolate->class_table()->AllocationProfilePrintToJSONStream(js); |
| + return true; |
| +} |
| + |
| + |
| static IsolateMessageHandlerEntry isolate_handlers[] = { |
| { "_echo", HandleIsolateEcho }, |
| { "classes", HandleClasses }, |
| { "code", HandleCode }, |
| { "debug", HandleDebug }, |
| + { "allocationprofile", HandleAllocationProfile }, |
|
Ivan Posva
2014/01/21 21:40:00
Sorted order?
Cutch
2014/01/21 23:44:06
Done.
|
| { "libraries", HandleLibraries }, |
| { "library", HandleLibrary }, |
| { "name", HandleName }, |