import org.eclipse.tracecompass.statesystem.core.StateSystemUtils;
import org.eclipse.tracecompass.statesystem.core.exceptions.AttributeNotFoundException;
import org.eclipse.tracecompass.statesystem.core.exceptions.StateSystemDisposedException;
+import org.eclipse.tracecompass.statesystem.core.exceptions.TimeRangeException;
import org.eclipse.tracecompass.statesystem.core.interval.ITmfStateInterval;
import org.eclipse.tracecompass.statesystem.core.statevalue.ITmfStateValue;
import org.eclipse.tracecompass.tmf.core.statesystem.TmfStateSystemAnalysisModule;
}
boolean complete = false;
- long currentEnd = start;
+ long currentEnd = Math.max(start, ss.getStartTime());
while (!complete && currentEnd < end) {
complete = ss.waitUntilBuilt(BUILD_UPDATE_TIMEOUT);
try {
execNameQuark = kernelSs.getQuarkRelative(tidQuark, Attributes.EXEC_NAME);
execNameIntervals = StateSystemUtils.queryHistoryRange(kernelSs, execNameQuark, getStartTime(), getEndTime());
- } catch (AttributeNotFoundException e) {
+ } catch (TimeRangeException | AttributeNotFoundException e) {
/*
* No information on this thread (yet?), skip it for now
*/
setXAxis(xvalues);
boolean complete = false;
- long currentEnd = start;
+ long currentEnd = Math.max(ss.getStartTime(), start);
while (!complete && currentEnd < end) {
return;
}
- long traceStart = getStartTime();
+ long traceStart = Math.max(getStartTime(), ss.getStartTime());
long traceEnd = getEndTime();
long offset = getTimeOffset();
long selectedThread = fSelectedThread;