CTF: Add some documentation on CTF test traces
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Fri, 29 Aug 2014 15:55:58 +0000 (11:55 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 15 Sep 2014 14:53:49 +0000 (10:53 -0400)
Sometimes, for a unit test, we just need a trace and having the trace length,
size and event count may help choose the right trace for the right test.

Change-Id: Ibc963509c0c7b08ab74b8a69cc34f33f5462768e
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/32555
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.linuxtools.ctf.core.tests/shared/org/eclipse/linuxtools/ctf/core/tests/shared/CtfTestTrace.java

index 71c5eeaffd51a34ac71b461dd32a39835198505c..2640fa7937d28dc6bad5a4d08909ea3608b90cf2 100644 (file)
@@ -26,37 +26,161 @@ import org.eclipse.linuxtools.ctf.core.trace.CTFTrace;
  * @author Alexandre Montplaisir
  */
 public enum CtfTestTrace {
-    /** Example kernel trace */
+    /**
+     * Example kernel trace
+     *
+     * <pre>
+     * Trace Size: 13 MB
+     * Tracer: lttng-modules 2.0.0
+     * Event count: 695 319
+     * Kernel version: 3.0.0-16-generic-pae
+     * Trace length: 10s
+     * </pre>
+     */
     KERNEL("../org.eclipse.linuxtools.ctf.core.tests/traces/kernel"),
 
-    /** Another kernel trace */
+    /**
+     * Another kernel trace
+     *
+     * <pre>
+     * Trace Size: 14 MB
+     * Tracer: lttng-modules 2.0.0
+     * Event count: 595 641
+     * Kernel version: 3.2.0-18-generic
+     * Trace length: 11s
+     * </pre>
+     */
     TRACE2("../org.eclipse.linuxtools.ctf.core.tests/traces/trace2"),
 
-    /** Kernel trace with event contexts */
+    /**
+     * Kernel trace with event contexts: pid, ppid, tid, procname,
+     * perf_page_fault, perf_major_faults, perf_minor_faults
+     *
+     * <pre>
+     * Trace Size: 56 MB
+     * Tracer: lttng-modules 2.1.0
+     * Event count: 714 484
+     * Kernel version: 3.8.1
+     * Trace length: 29s
+     * </pre>
+     */
     KERNEL_VM("../org.eclipse.linuxtools.ctf.core.tests/traces/kernel_vm"),
 
-    /** Trace synchronization: source trace */
+    /**
+     * Kernel trace with all events enabled. Contains 'inet_sock_local_*' events
+     * provided by Francis's Giraldeau lttng-modules addons branch to trace TCP
+     * events. Can be used along with {@link CtfTestTrace#SYNC_DEST} for trace
+     * synchronization.
+     *
+     * <pre>
+     * Trace Size: 2.4 MB
+     * Tracer: lttng-modules 2.1.0
+     * Event count: 110 771
+     * Kernel version: 3.6.11-1-ARCH
+     * Trace length: 22s
+     * </pre>
+     */
     SYNC_SRC("../org.eclipse.linuxtools.ctf.core.tests/traces/synctraces/scp_src"),
 
-    /** Trace synchronization: destination trace */
+    /**
+     * Kernel trace with all events enabled. Contains 'inet_sock_local_*' events
+     * provided by Francis's Giraldeau lttng-modules addons branch to trace TCP
+     * events. Can be used along with {@link CtfTestTrace#SYNC_SRC} for trace
+     * synchronization.
+     *
+     * <pre>
+     * Trace Size: 1.9 MB
+     * Tracer: lttng-modules 2.1.0
+     * Event count: 85 729
+     * Kernel version: 3.6.11-1-ARCH
+     * Trace length: 17s
+     * </pre>
+     */
     SYNC_DEST("../org.eclipse.linuxtools.ctf.core.tests/traces/synctraces/scp_dest"),
 
-    /** Trace synchronization (case 2): django client trace */
+    /**
+     * LTTng Kernel trace. Contains 'inet_sock_local_*' events provided by
+     * Francis's Giraldeau lttng-modules addons branch to trace TCP events. Can
+     * be used along with {@link CtfTestTrace#DJANGO_DB} and
+     * {@link CtfTestTrace#DJANGO_HTTPD} for trace synchronization.
+     *
+     * <pre>
+     * Trace Size: 33 MB
+     * Tracer: lttng-modules 2.4.0
+     * Event count: 754 787
+     * Kernel version: 3.13.0-24-generic
+     * Trace length: 15s
+     * </pre>
+     */
     DJANGO_CLIENT("../org.eclipse.linuxtools.ctf.core.tests/traces/django-benchmark/django-client"),
 
-    /** Trace synchronization (case 2): django db trace */
+    /**
+     * LTTng Kernel trace. Contains 'inet_sock_local_*' events provided by
+     * Francis's Giraldeau lttng-modules addons branch to trace TCP events. Can
+     * be used along with {@link CtfTestTrace#DJANGO_CLIENT} and
+     * {@link CtfTestTrace#DJANGO_HTTPD} for trace synchronization.
+     *
+     * <pre>
+     * Trace Size: 28 MB
+     * Tracer: lttng-modules 2.4.0
+     * Event count: 692 098
+     * Kernel version: 3.13.0-24-generic
+     * Trace length: 14s
+     * </pre>
+     */
     DJANGO_DB("../org.eclipse.linuxtools.ctf.core.tests/traces/django-benchmark/django-db"),
 
-    /** Trace synchronization (case 2): django web server trace */
+    /**
+     * LTTng Kernel trace. Contains 'inet_sock_local_*' events provided by
+     * Francis's Giraldeau lttng-modules addons branch to trace TCP events. Can
+     * be used along with {@link CtfTestTrace#DJANGO_DB} and
+     * {@link CtfTestTrace#DJANGO_CLIENT} for trace synchronization.
+     *
+     * <pre>
+     * Trace Size: 31 MB
+     * Tracer: lttng-modules 2.4.0
+     * Event count: 779 096
+     * Kernel version:3.13.0-24-generic
+     * Trace length: 13s
+     * </pre>
+     */
     DJANGO_HTTPD("../org.eclipse.linuxtools.ctf.core.tests/traces/django-benchmark/django-httpd"),
 
-    /** UST trace with lots of lost events */
+    /**
+     * UST trace with lots of lost events
+     *
+     * <pre>
+     * Trace Size: 3.4 MB
+     * Tracer: lttng-ust 2.3
+     * Event count: 1 000 000, with 967 700 lost events
+     * Trace length: 279ms
+     * </pre>
+     */
     HELLO_LOST("../org.eclipse.linuxtools.ctf.core.tests/traces/hello-lost"),
 
-    /** UST trace with lttng-ust-cyg-profile events (aka -finstrument-functions) */
+    /**
+     * UST trace with lttng-ust-cyg-profile events (aka -finstrument-functions)
+     *
+     * <pre>
+     * Trace Size: 236 KB
+     * Tracer: lttng-ust 2.3
+     * Event count: 4 977
+     * Trace length: 10s
+     * </pre>
+     */
     CYG_PROFILE("../org.eclipse.linuxtools.ctf.core.tests/traces/cyg-profile/glxgears-cyg-profile"),
 
-    /** UST trace with lttng-ust-cyg-profile-fast events (no address in func_exit) */
+    /**
+     * UST trace with lttng-ust-cyg-profile-fast events (no address in
+     * func_exit)
+     *
+     * <pre>
+     * Trace Size: 184 KB
+     * Tracer: lttng-ust 2.3
+     * Event count: 5 161
+     * Trace length: 11s
+     * </pre>
+     */
     CYG_PROFILE_FAST("../org.eclipse.linuxtools.ctf.core.tests/traces/cyg-profile/glxgears-cyg-profile-fast"),
 
     /** Autogenerated Syntetic trace */
@@ -68,7 +192,6 @@ public enum CtfTestTrace {
     /** Set of many traces, do not call getTrace */
     TRACE_EXPERIMENT("../org.eclipse.linuxtools.ctf.core.tests/traces/exp");
 
-
     private final String fPath;
     private CTFTrace fTrace = null;
     private CTFTrace fTraceFromFile = null;
This page took 0.028904 seconds and 5 git commands to generate.