tmf: Update TmfSchedulerBenchmark requests
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 3 Sep 2013 17:55:19 +0000 (13:55 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Mon, 16 Sep 2013 19:23:29 +0000 (15:23 -0400)
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 <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/16145

org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/request/TmfSchedulerBenchmark.java

index e7f1405a5bca28fb464d36f73620d212320c0137..f9600b757630183dd0cb93838e9b18fb84232150 100644 (file)
@@ -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();
         }
This page took 0.026093 seconds and 5 git commands to generate.