changeset 50:09d02dd7b198

Performance print in TraceGen.
author shade
date Fri, 30 Aug 2013 19:47:44 +0400
parents 83d5219c2f6f
children be0b862fb796
files generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java	Fri Aug 30 19:07:00 2013 +0400
+++ b/generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java	Fri Aug 30 19:47:44 2013 +0400
@@ -68,6 +68,7 @@
             traces = product(traces, possibleOps);
             allTraces.addAll(traces);
         }
+        System.out.println(traces.size() + " basic traces");
 
         List<Trace> newTraces = new ArrayList<Trace>();
         for (Trace trace : allTraces) {
@@ -95,6 +96,7 @@
             newTraces.add(trace);
         }
         traces = newTraces;
+        System.out.println(traces.size() + " interesting traces");
 
         List<MultiTrace> multiTraces = new ArrayList<MultiTrace>();
         for (Trace trace : traces) {
@@ -107,6 +109,7 @@
                 }
             }
         }
+        System.out.println(multiTraces.size() + " basic multi-traces");
 
         Set<String> processedMultitraces = new HashSet<String>();
 
@@ -147,6 +150,7 @@
                 System.out.print(".");
         }
         System.out.println();
+        System.out.println(testCount + " interesting multi-traces");
 
         resourceWriter.println("</testsuite>");
         resourceWriter.close();