From: Alexandre Montplaisir Date: Tue, 3 Sep 2013 17:55:19 +0000 (-0400) Subject: tmf: Update TmfSchedulerBenchmark requests X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=15c2cf25823f2f5340ee78c0a3813746c768ddf6;p=deliverable%2Ftracecompass.git tmf: Update TmfSchedulerBenchmark requests With ff830df currently sitting in the luna branch, the constructor that was called by the inner request classes for the benchmark does not exist anymore. However, turns out that its signature matches the one of the new unique constructor. This had the nasty effect of compiling fine, but giving completely meaningless results. Update the constructor calls so that they use the new, relevant parameters. Change-Id: I5e86b40d735185fddb633cfedb754080fae09986 Signed-off-by: Alexandre Montplaisir Reviewed-on: https://git.eclipse.org/r/16145 --- diff --git a/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/request/TmfSchedulerBenchmark.java b/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/request/TmfSchedulerBenchmark.java index e7f1405a5b..f9600b7576 100644 --- a/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/request/TmfSchedulerBenchmark.java +++ b/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/request/TmfSchedulerBenchmark.java @@ -225,7 +225,6 @@ public class TmfSchedulerBenchmark { // ------------------------------------------------------------------------ private static class BackgroundRequest extends TmfEventRequest { - private static final int CHUNK_SIZE = 0; private long startTime; private long endTimeLatency = -1; private long completedTime = 0; @@ -236,9 +235,10 @@ public class TmfSchedulerBenchmark { private boolean isWaiting = false; BackgroundRequest(TmfTimeRange timeRange) { - super(trace.getEventType(), timeRange, + super(trace.getEventType(), + timeRange, + 0, TmfDataRequest.ALL_DATA, - CHUNK_SIZE, ExecutionType.BACKGROUND); startTime = System.nanoTime(); } @@ -290,7 +290,6 @@ public class TmfSchedulerBenchmark { } private static class ForegroundRequest extends TmfEventRequest { - private static final int CHUNK_SIZE = 0; private long startTime = 0; private long endTimeLatency = -1; private long completedTime = 0; @@ -301,9 +300,10 @@ public class TmfSchedulerBenchmark { private boolean isWaiting = false; ForegroundRequest(TmfTimeRange timeRange) { - super(trace.getEventType(), timeRange, + super(trace.getEventType(), + timeRange, + 0, TmfDataRequest.ALL_DATA, - CHUNK_SIZE, ExecutionType.FOREGROUND); startTime = System.nanoTime(); }