Package at.tuwien.minimee.migration.parser

Examples of at.tuwien.minimee.migration.parser.TIME_Parser


    }
   
    @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();
        PlatoLogger.getLogger(this.getClass()).debug("TIME measured: " + dbg);
       
        for (MeasurableProperty property: getMeasurableProperties()) {
            Measurement m = new Measurement();
            m.setProperty(property);
            PositiveFloatValue v = (PositiveFloatValue) property.getScale().createValue();
           
            if (property.getName().equals(MigrationResult.MIGRES_USED_TIME)) {
                v.setValue((p.getUser()+p.getSys())*1000);
            }
           
            m.setValue(v);
            result.getMeasurements().put(property.getName(), m);
        }
View Full Code Here


    }
   
    @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);
        }
View Full Code Here

TOP

Related Classes of at.tuwien.minimee.migration.parser.TIME_Parser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.