[Swift-commit] r5774 - trunk/src/org/griphyn/vdl/karajan/lib
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Sat Apr 28 23:23:14 CDT 2012
Author: hategan
Date: 2012-04-28 23:23:14 -0500 (Sat, 28 Apr 2012)
New Revision: 5774
Modified:
trunk/src/org/griphyn/vdl/karajan/lib/RuntimeStats.java
Log:
added getSummary to avoid breaking the TUI
Modified: trunk/src/org/griphyn/vdl/karajan/lib/RuntimeStats.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/RuntimeStats.java 2012-04-29 02:56:04 UTC (rev 5773)
+++ trunk/src/org/griphyn/vdl/karajan/lib/RuntimeStats.java 2012-04-29 04:23:14 UTC (rev 5774)
@@ -222,9 +222,13 @@
}
printStates("Final status:");
}
+
+ public Map getSummary() {
+ return new HashMap<String, Integer>(counts);
+ }
void printStates(String prefix) {
- Map<String, Integer> summary = new HashMap<String, Integer>(counts);
+ Map<String, Integer> summary = getSummary();
// SimpleDateFormat formatter = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss Z");
// output the results of summarization, in a relatively
@@ -233,7 +237,7 @@
System.err.print(prefix + " ");
//System.err.print(" time:" + (System.currentTimeMillis() - start));
System.err.print(formatter.format(System.currentTimeMillis()));
-
+
for (int pos = 0; pos < preferredOutputOrder.length; pos++) {
String key = preferredOutputOrder[pos];
Integer value = summary.get(key);
More information about the Swift-commit
mailing list