Chromium Code Reviews| Index: runtime/vm/service.cc |
| diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
| index 33f1af31d5ddb18358ba139f68255366385dcd6d..2b3be6ab67064a625248b711dc4dfd21e7cfed65 100644 |
| --- a/runtime/vm/service.cc |
| +++ b/runtime/vm/service.cc |
| @@ -1461,6 +1461,10 @@ static bool HandleAllocationProfile(Isolate* isolate, JSONStream* js) { |
| isolate->class_table()->ResetAllocationAccumulators(); |
| isolate->class_table()->AllocationProfilePrintToJSONStream(js); |
| return true; |
| + } else if (!strcmp(sub_command, "fullgc")) { |
|
Ivan Posva
2014/03/25 21:20:43
We need a better way to pass parameters to the di
turnidge
2014/03/25 22:02:50
This feels more like an option than a subcommand t
|
| + isolate->heap()->CollectAllGarbage(); |
| + isolate->class_table()->AllocationProfilePrintToJSONStream(js); |
| + return true; |
| } else { |
| PrintError(js, "Unrecognized subcommand '%s'", sub_command); |
| return true; |