import org.eclipse.linuxtools.tmf.core.request.TmfEventRequest;
import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimeRange;
-import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
/**
- * Class to request events for given time range from a trace to fill a HistogramDataModel and HistogramView.
+ * Class to request events for given time range from a trace to fill a
+ * HistogramDataModel and HistogramView.
*
* @version 1.0
* @author Francois Chouinard
public HistogramRequest(HistogramDataModel histogram, TmfTimeRange range,
int rank, int nbEvents, int blockSize,
ITmfDataRequest.ExecutionType execType) {
- super(ITmfEvent.class, range, rank, nbEvents,
- (blockSize > 0) ? blockSize : ITmfTrace.DEFAULT_TRACE_CACHE_SIZE,
- execType);
+ super(ITmfEvent.class, range, rank, nbEvents, execType);
fHistogram = histogram;
- super(ITmfEvent.class, range, rank, nbEvents,
- (blockSize > 0) ? blockSize : ITmfTrace.DEFAULT_TRACE_CACHE_SIZE,
- execType);
+ if (execType == ExecutionType.FOREGROUND) {
+ fFullRange = false;
+ } else {
+ fFullRange = true;
+ }
+ }
+
+ /**
+ * Constructor
+ *
+ * @param histogram
+ * The histogram data model
+ * @param range
+ * The time range to request data
+ * @param rank
+ * The index of the first event to retrieve
+ * @param nbEvents
+ * The number of events requested
+ * @param blockSize
+ * The number of events per block
+ * @param execType
+ * The requested execution priority
+ * @param fullRange
+ * Full range or time range for histogram request
+ * @since 2.2
+ *
+ */
+ public HistogramRequest(HistogramDataModel histogram, TmfTimeRange range,
+ int rank, int nbEvents, int blockSize,
+ ITmfDataRequest.ExecutionType execType, boolean fullRange) {
++ super(ITmfEvent.class, range, rank, nbEvents, execType);
+ fHistogram = histogram;
+ fFullRange = fullRange;
}
// ------------------------------------------------------------------------