From 83b46c2a02200b41f6177b6da2ba421b4fc482f7 Mon Sep 17 00:00:00 2001 From: Si Chen Date: Wed, 9 May 2012 18:16:30 +0100 Subject: [PATCH] Add ability to run multiple traces in one time. --- retrace/retrace_main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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" -- 2.43.0