TMF: Update the benchmark's scenario ID to match our own spec
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Tue, 15 Jul 2014 16:17:30 +0000 (12:17 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Thu, 17 Jul 2014 13:49:05 +0000 (09:49 -0400)
As we discussed, the names of benchmark should be org.eclipse.linuxtools#
<Application component>#<identifier of the scenario>

Change-Id: I78f0c3207a824990706bc8d479044d8df2024708
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/29918
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.linuxtools.lttng2.kernel.core.tests/perf/org/eclipse/linuxtools/lttng2/kernel/core/tests/perf/event/matching/EventMatchingBenchmark.java
org.eclipse.linuxtools.lttng2.kernel.core.tests/perf/org/eclipse/linuxtools/lttng2/kernel/core/tests/perf/event/matching/TraceSynchronizationBenchmark.java
org.eclipse.linuxtools.tmf.ctf.core.tests/perf/org/eclipse/linuxtools/tmf/ctf/core/tests/perf/experiment/ExperimentBenchmark.java

index 03c4d19d4f041ab70b0f70b08e1f19d469bfd0de..c19669141c77e0e3f14eb8e83de01fc5ecd82a47 100644 (file)
@@ -39,7 +39,7 @@ import com.google.common.collect.ImmutableSet;
  */
 public class EventMatchingBenchmark {
 
-    private static final String TEST_ID = "org.eclipse.linuxtools#Event matching";
+    private static final String TEST_ID = "org.eclipse.linuxtools#Event matching#";
     private static final String TIME = " (time)";
     private static final String MEMORY = " (memory usage)";
     private static final String TEST_SUMMARY = "Event matching";
@@ -90,8 +90,8 @@ public class EventMatchingBenchmark {
 
     private static void runCpuTest(Set<ITmfTrace> testTraces, String testName, int loop_count) {
         Performance perf = Performance.getDefault();
-        PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + TIME + '#' + testName);
-        perf.tagAsSummary(pm, TEST_SUMMARY + TIME + ':' + testName, Dimension.CPU_TIME);
+        PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + testName + TIME);
+        perf.tagAsSummary(pm, TEST_SUMMARY + ':' + testName + TIME, Dimension.CPU_TIME);
 
         for (int i = 0; i < loop_count; i++) {
             TmfNetworkEventMatching traceMatch = new TmfNetworkEventMatching(testTraces);
@@ -107,8 +107,8 @@ public class EventMatchingBenchmark {
     /* Benchmark memory used by the algorithm */
     private static void runMemoryTest(Set<ITmfTrace> testTraces, String testName, int loop_count) {
         Performance perf = Performance.getDefault();
-        PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + MEMORY + '#' + testName);
-        perf.tagAsSummary(pm, TEST_SUMMARY + MEMORY + ':' + testName, Dimension.USED_JAVA_HEAP);
+        PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + testName + MEMORY);
+        perf.tagAsSummary(pm, TEST_SUMMARY + ':' + testName + MEMORY, Dimension.USED_JAVA_HEAP);
 
         for (int i = 0; i < loop_count; i++) {
             TmfNetworkEventMatching traceMatch = new TmfNetworkEventMatching(testTraces);
index 38bf50c735b0fc969a27f5fdee1162a9deb16988..5fe6fd25d415e0f907de04eb634f0056454ea4d1 100644 (file)
@@ -38,7 +38,7 @@ import org.junit.Test;
  */
 public class TraceSynchronizationBenchmark {
 
-    private static final String TEST_ID = "org.eclipse.linuxtools#Trace synchronization";
+    private static final String TEST_ID = "org.eclipse.linuxtools#Trace synchronization#";
     private static final String TIME = " (time)";
     private static final String MEMORY = " (memory usage)";
     private static final String TEST_SUMMARY = "Trace synchronization";
@@ -90,8 +90,8 @@ public class TraceSynchronizationBenchmark {
 
     private static void runCpuTest(ITmfTrace[] testTraces, String testName, int loop_count) {
         Performance perf = Performance.getDefault();
-        PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + TIME + '#' + testName);
-        perf.tagAsSummary(pm, TEST_SUMMARY + TIME + ':' + testName, Dimension.CPU_TIME);
+        PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + testName + TIME);
+        perf.tagAsSummary(pm, TEST_SUMMARY + ':' + testName + TIME, Dimension.CPU_TIME);
 
         for (int i = 0; i < loop_count; i++) {
             TmfExperiment experiment = new TmfExperiment(CtfTmfEvent.class, "Test experiment", testTraces, BLOCK_SIZE);
@@ -112,8 +112,8 @@ public class TraceSynchronizationBenchmark {
     /* Benchmark memory used by the algorithm */
     private static void runMemoryTest(ITmfTrace[] testTraces, String testName, int loop_count) {
         Performance perf = Performance.getDefault();
-        PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + MEMORY + '#' + testName);
-        perf.tagAsSummary(pm, TEST_SUMMARY + MEMORY + ':' + testName, Dimension.USED_JAVA_HEAP);
+        PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + testName + MEMORY);
+        perf.tagAsSummary(pm, TEST_SUMMARY + ':' + testName + MEMORY, Dimension.USED_JAVA_HEAP);
 
         for (int i = 0; i < loop_count; i++) {
             TmfExperiment experiment = new TmfExperiment(CtfTmfEvent.class, "Test experiment", testTraces, BLOCK_SIZE);
index 5c038b3c0ecd36da4ea2e4549008eb1ed53a24a2..e19c1af8a045708aed54408b7df1c8ab41649eec 100644 (file)
@@ -40,7 +40,7 @@ import org.junit.Test;
  */
 public class ExperimentBenchmark {
 
-    private static final String TEST_ID = "org.eclipse.linuxtools#Experiment benchmark";
+    private static final String TEST_ID = "org.eclipse.linuxtools#Experiment benchmark#";
     private static final int MAX_TRACES = 160;
     private static final int BLOCK_SIZE = 100;
     private static final String TRACES_ROOT_PATH = CtfTestTrace.TRACE_EXPERIMENT.getPath();
@@ -56,10 +56,10 @@ public class ExperimentBenchmark {
         Performance perf = Performance.getDefault();
 
         for (int numTraces = 1; numTraces < MAX_TRACES; numTraces = (int) (1.6 * (numTraces + 1))) {
-            PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + '(' + numTraces + ')');
-            perf.tagAsSummary(pm, "Experiment Benchmark traces:" + numTraces, Dimension.CPU_TIME);
+            PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + numTraces + " traces");
+            perf.tagAsSummary(pm, "Experiment Benchmark:" + numTraces + " traces", Dimension.CPU_TIME);
             if ((int) (1.6 * (numTraces + 1)) > MAX_TRACES) {
-                perf.tagAsGlobalSummary(pm, "Experiment Benchmark traces: " + numTraces, Dimension.CPU_TIME);
+                perf.tagAsGlobalSummary(pm, "Experiment Benchmark:" + numTraces + " traces", Dimension.CPU_TIME);
             }
 
             for (int s = 0; s < SAMPLE_SIZE; s++) {
This page took 0.029504 seconds and 5 git commands to generate.