]> git.saurik.com Git - cycript.git/commitdiff
Provide some kind of feedback while running ?gc.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 21 Jan 2014 11:35:29 +0000 (03:35 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 21 Jan 2014 11:35:29 +0000 (03:35 -0800)
Console.cpp

index fdff81c84af6356bed437ddef1511a5e1ae6e04b..c2c46f9d5b0325158f0cfa8291a85f923bdd6e10 100644 (file)
@@ -500,7 +500,9 @@ static void Console(CYOptions &options) {
                 } else if (data == "destroy") {
                     CYDestroyContext();
                 } else if (data == "gc") {
+                    *out_ << "collecting... " << std::flush;
                     CYGarbageCollect(CYGetJSContext());
+                    *out_ << "done." << std::endl;
                 } else if (data == "exit") {
                     return;
                 } else if (data == "expand") {