summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMatthew Khouzam2012-03-19 11:42:58 (EDT)
committer Francois Chouinard2012-04-16 14:19:52 (EDT)
commita97888f084252debbb4543f8d38e424f1fe973df (patch)
treeddf72c362f955a91d1adda2d931983b37f2ea2d5
parent117c2cdb3591bc8797cdfa73e4d938d90f1bc55b (diff)
downloadorg.eclipse.linuxtools-a97888f084252debbb4543f8d38e424f1fe973df.zip
org.eclipse.linuxtools-a97888f084252debbb4543f8d38e424f1fe973df.tar.gz
org.eclipse.linuxtools-a97888f084252debbb4543f8d38e424f1fe973df.tar.bz2
Added an interesting headless test. It is more there to show how someone
can use the trace. Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
-rw-r--r--lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/headless/ReadTrace.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/headless/ReadTrace.java b/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/headless/ReadTrace.java
index a6b5aff..07cdfbf 100644
--- a/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/headless/ReadTrace.java
+++ b/lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/headless/ReadTrace.java
@@ -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 ");
}