From 2c7566468c0e140d63895b62e4576a224a88fac7 Mon Sep 17 00:00:00 2001 From: chad Date: Fri, 29 Jan 2016 15:19:18 -0500 Subject: [PATCH] Print total instructions in addition to total steps. --- src/core.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core.cpp b/src/core.cpp index 7bfb08c6..32804c50 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -77,7 +77,12 @@ bool Core::running() const { } void Core::printStats() const { - cout << "Steps: " << steps << endl; + unsigned long insts = 0; + for (unsigned i = 0; i < w.size(); ++i) + insts += w[i].insts; + + cout << "Total steps: " << steps << endl; + cout << "Total insts: " << insts << endl; for (unsigned i = 0; i < w.size(); ++i) { cout << "=== Warp " << i << " ===" << endl;