}
@Override
protected void collectData(ToolConfig config, long time, MigrationResult result) {
TIME_Parser p = new TIME_Parser();
p.parse(makeOutputFilename(config, time)+".time");
String dbg = "real:" + p.getReal()+",user:"+p.getUser()+",sys:"+p.getSys();
LoggerFactory.getLogger(this.getClass()).debug("TIME measured: " + dbg);
for (Measure measure: getMeasures()) {
Measurement m = new Measurement();
m.setMeasureId(measure.getUri());
PositiveFloatValue v = (PositiveFloatValue) measure.getScale().createValue();
if (measure.getUri().equals(MeasureConstants.ELAPSED_TIME_PER_OBJECT)) {
v.setValue((p.getUser()+p.getSys())*1000);
}
m.setValue(v);
result.getMeasurements().put(measure.getUri(), m);
}