if (!(performanceMeter instanceof InternalPerformanceMeter))
return; // we cannot handle this.
InternalPerformanceMeter ipm= (InternalPerformanceMeter) performanceMeter;
Sample session= ipm.getSample();
Assert.assertTrue("metering session is null", session != null); //$NON-NLS-1$
String scenarioName= session.getScenarioID();
// determine all dimensions we need
HashSet allDimensions= new HashSet();
for (int i= 0; i < fCheckers.length; i++) {
AssertChecker chk= fCheckers[i];
Dim[] dims= chk.getDimensions();
for (int j= 0; j < dims.length; j++)
allDimensions.add(dims[j]);
}
// get data for this session
DataPoint[] sessionDatapoints;
Variations config= PerformanceTestPlugin.getVariations();
if (config != null)
sessionDatapoints= DB.queryDataPoints(config, scenarioName, allDimensions);
else
sessionDatapoints= session.getDataPoints();
if (sessionDatapoints == null || sessionDatapoints.length == 0) {
PerformanceTestPlugin.logWarning("no session data named '" + config + "' found"); //$NON-NLS-1$ //$NON-NLS-2$
return;
}