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

Unified Diff: runtime/vm/service.cc

Issue 211373005: Add fullgc sub-command to allocationprofile (Closed) Base URL: https://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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698