Added an interesting headless test. It is more there to show how someone
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 19 Mar 2012 15:42:58 +0000 (11:42 -0400)
committerFrancois Chouinard <fchouinard@gmail.com>
Mon, 16 Apr 2012 18:19:52 +0000 (14:19 -0400)
can use the trace.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/headless/ReadTrace.java

index a6b5aff311686d16bce729b2e62e569bb45d6c5d..07cdfbfe2596a4cabb72e08e0ebc3758cc6a9c28 100644 (file)
@@ -28,10 +28,10 @@ public class ReadTrace {
      */
     @SuppressWarnings("nls")
     public static void main(String[] args) {
-        final String TRACE_PATH = "Tests/traces/trace20m";
+        final String TRACE_PATH = "Tests/traces/trace20m1";
 
         // Change this to enable text output
-        final boolean USE_TEXT = false;
+        final boolean USE_TEXT = true;
 
         // Work variables
         Long nbEvent = 0L;
@@ -61,7 +61,7 @@ public class ReadTrace {
             }
         }
         stop = System.nanoTime();
-        System.out.println("Time taken for " + nbEvent + " " + (stop - start)
+        System.out.println("Time taken for " + nbEvent + " events " + (stop - start)
                 + "ns ");
         System.out.println(((stop - start) / nbEvent) + "ns/event ");
     }
This page took 0.027706 seconds and 5 git commands to generate.