X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lttng%2Forg.eclipse.tracecompass.lttng2.kernel.core.tests%2Fperf%2Forg%2Feclipse%2Ftracecompass%2Flttng2%2Fkernel%2Fcore%2Ftests%2Fperf%2Fevent%2Fmatching%2FTraceSynchronizationBenchmark.java;h=5580ee549bd0535d6e4af3e3bacd5721aef3f4c2;hb=aa35350660b47f6479a7fa499d8d10e2772e46fd;hp=a71beafcffdc95fd2d2d41d1fae7f348abb952ee;hpb=2b7c6996a97c80433032850e8bd9da80cdf607ad;p=deliverable%2Ftracecompass.git diff --git a/lttng/org.eclipse.tracecompass.lttng2.kernel.core.tests/perf/org/eclipse/tracecompass/lttng2/kernel/core/tests/perf/event/matching/TraceSynchronizationBenchmark.java b/lttng/org.eclipse.tracecompass.lttng2.kernel.core.tests/perf/org/eclipse/tracecompass/lttng2/kernel/core/tests/perf/event/matching/TraceSynchronizationBenchmark.java index a71beafcff..5580ee549b 100644 --- a/lttng/org.eclipse.tracecompass.lttng2.kernel.core.tests/perf/org/eclipse/tracecompass/lttng2/kernel/core/tests/perf/event/matching/TraceSynchronizationBenchmark.java +++ b/lttng/org.eclipse.tracecompass.lttng2.kernel.core.tests/perf/org/eclipse/tracecompass/lttng2/kernel/core/tests/perf/event/matching/TraceSynchronizationBenchmark.java @@ -16,6 +16,7 @@ import static org.junit.Assert.assertNotNull; import java.util.Collections; +import org.eclipse.jdt.annotation.NonNull; import org.eclipse.test.performance.Dimension; import org.eclipse.test.performance.Performance; import org.eclipse.test.performance.PerformanceMeter; @@ -89,14 +90,14 @@ public class TraceSynchronizationBenchmark { trace3.dispose(); } - private static void runCpuTest(TmfExperiment experiment, String testName, int loop_count) { + private static void runCpuTest(@NonNull TmfExperiment experiment, String testName, int loop_count) { Performance perf = Performance.getDefault(); 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++) { pm.start(); - SynchronizationManager.synchronizeTraces(null, Collections. singleton(experiment), true); + SynchronizationManager.synchronizeTraces(null, Collections.singleton(experiment), true); pm.stop(); } pm.commit(); @@ -104,7 +105,7 @@ public class TraceSynchronizationBenchmark { } /* Benchmark memory used by the algorithm */ - private static void runMemoryTest(TmfExperiment experiment, String testName, int loop_count) { + private static void runMemoryTest(@NonNull TmfExperiment experiment, String testName, int loop_count) { Performance perf = Performance.getDefault(); PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + testName + MEMORY); perf.tagAsSummary(pm, TEST_SUMMARY + ':' + testName + MEMORY, Dimension.USED_JAVA_HEAP); @@ -113,7 +114,7 @@ public class TraceSynchronizationBenchmark { System.gc(); pm.start(); - SynchronizationAlgorithm algo = SynchronizationManager.synchronizeTraces(null, Collections. singleton(experiment), true); + SynchronizationAlgorithm algo = SynchronizationManager.synchronizeTraces(null, Collections.singleton(experiment), true); assertNotNull(algo); System.gc();