From: Si Chen Date: Wed, 9 May 2012 17:16:30 +0000 (+0100) Subject: Add ability to run multiple traces in one time. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=83b46c2a02200b41f6177b6da2ba421b4fc482f7;p=apitrace Add ability to run multiple traces in one time. --- diff --git a/retrace/retrace_main.cpp b/retrace/retrace_main.cpp index c15af29..349b5a1 100644 --- a/retrace/retrace_main.cpp +++ b/retrace/retrace_main.cpp @@ -122,6 +122,7 @@ mainLoop() { addCallbacks(retracer); long long startTime = 0; + frameNo = 0; startTime = os::getTime(); trace::Call *call; @@ -177,7 +178,7 @@ mainLoop() { if (waitOnFinish) { waitForInput(); } else { - exit(0); + return; } } @@ -188,7 +189,7 @@ mainLoop() { static void usage(const char *argv0) { std::cout << - "Usage: " << argv0 << " [OPTION] TRACE\n" + "Usage: " << argv0 << " [OPTION] TRACE [...]\n" "Replay TRACE.\n" "\n" " -b benchmark mode (no error checking or warning messages)\n"