}
latency.waitForCompletion();
- ISegmentStore<ISegment> store = latency.getResults();
+ ISegmentStore<ISegment> segStore = latency.getSegmentStore();
- if (store != null) {
+ if (segStore != null) {
- boolean result = calculateTotalManual(store, monitor);
+ boolean result = calculateTotalManual(segStore, monitor);
if (!result) {
return false;
}
- result = calculateTotalPerSyscall(store, monitor);
+ result = calculateTotalPerSyscall(segStore, monitor);
if (!result) {
return false;
}
protected abstract Object[] readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException;
/**
- * Returns the result in a from the analysis in a ISegmentStore
+ * Returns the segment store built by this analysis
*
- * @return Results from the analysis in a ISegmentStore
+ * @return The segment store
*/
- public @Nullable ISegmentStore<ISegment> getResults() {
+ public @Nullable ISegmentStore<ISegment> getSegmentStore() {
return fSegmentStore;
}
if (analysisModule == null) {
return null;
}
- final ISegmentStore<ISegment> results = analysisModule.getResults();
- if (results == null) {
+ final ISegmentStore<ISegment> segStore = analysisModule.getSegmentStore();
+ if (segStore == null) {
return null;
}
- Iterator<ISegment> intersectingElements = results.getIntersectingElements(timeRange.getStartTime().getValue(), timeRange.getEndTime().getValue()).iterator();
+ Iterator<ISegment> intersectingElements = segStore.getIntersectingElements(timeRange.getStartTime().getValue(), timeRange.getEndTime().getValue()).iterator();
if (durationRange.lower > Double.MIN_VALUE || durationRange.upper < Double.MAX_VALUE) {
Predicate<? super ISegment> predicate = new Predicate<ISegment>() {
return new Status(IStatus.WARNING, Activator.PLUGIN_ID, "Analysis module not available"); //$NON-NLS-1$
}
- final ISegmentStore<ISegment> results = module.getResults();
- if (results == null) {
+ final ISegmentStore<ISegment> segStore = module.getSegmentStore();
+ if (segStore == null) {
setWindowRange(startTimeInNanos, endTimeInNanos);
redraw(statusMonitor, startTimeInNanos, startTimeInNanos, Collections.EMPTY_LIST);
return new Status(IStatus.INFO, Activator.PLUGIN_ID, "Analysis module does not have results"); //$NON-NLS-1$
final long endTime = fCurrentRange.getEndTime().getValue();
fPixelStart = startTime;
fPixelSize = (endTime - startTime) / MAX_POINTS;
- final Iterable<ISegment> intersectingElements = results.getIntersectingElements(startTime, endTime);
+ final Iterable<ISegment> intersectingElements = segStore.getIntersectingElements(startTime, endTime);
final List<ISegment> list = convertIterableToList(intersectingElements, statusMonitor);
final List<ISegment> displayData = (!list.isEmpty()) ? compactList(startTime, list, statusMonitor) : list;
updateModel(null);
return;
}
- ISegmentStore<ISegment> results = analysis.getResults();
+ ISegmentStore<ISegment> segStore = analysis.getSegmentStore();
// If results are not null, then analysis is completed and model can be
// updated
- if (results != null) {
- updateModel(results);
+ if (segStore != null) {
+ updateModel(segStore);
setAnalysisModule(analysis);
return;
}
createAnalysisColumns();
- ISegmentStore<ISegment> results = analysis.getResults();
+ ISegmentStore<ISegment> segStore = analysis.getSegmentStore();
// If results are not null, then analysis is completed and model can be
// updated
- if (results != null) {
- updateModel(results);
+ if (segStore != null) {
+ updateModel(segStore);
return;
}
// If results are null, then add completion listener and run analysis