private boolean fStatisticsUpdatePending = false;
private TmfTimeRange fStatisticsUpdateRange = null;
private final Object fStatisticsUpdateSyncObj = new Object();
+ private boolean fClearData = true;
+ // Flag to force request the data from trace
+ private boolean fRequestData = false;
/**
* Contains all the information necessary to build a column of the table.
@SuppressWarnings({ "rawtypes", "unchecked" })
TmfExperimentSelectedSignal<?> signal = new TmfExperimentSelectedSignal(this, experiment);
+ fRequestData = true;
experimentSelected(signal);
} else {
// The experiment root is already present
StatisticsTreeNode experimentTreeNode = StatisticsTreeRootFactory.getStatTreeRoot(experimentName);
- ITmfTrace[] traces = experiment.getTraces();
+ @SuppressWarnings("rawtypes")
+ ITmfTrace[] traces = experiment.getTraces();
LTTngTreeNode expNode = StateManagerFactory.getExperimentManager().getSelectedExperiment();
}
// if the data is not available or has changed, reload it
- requestData(experiment, experiment.getTimeRange(), true);
+ fClearData = true;
+ if(fRequestData) {
+ requestData(experiment, experiment.getTimeRange(), fClearData);
+ fRequestData = false;
+ }
}
}
return;
}
- requestData(experiment, signal.getRange(), false);
+ requestData(experiment, signal.getRange(), fClearData);
+ fClearData = false;
}
/**
}
// send the initial request, to start filling up model
- //eventRequest(fStatisticsUpdateIndex, nbRequested, fStatisticsUpdateStartTime, clearingData, ExecutionType.BACKGROUND);
eventRequest(index, range, clearingData, ExecutionType.BACKGROUND);
} else {
TraceDebug.debug("No selected experiment information available"); //$NON-NLS-1$