Package at.tuwien.minimee.util

Examples of at.tuwien.minimee.util.ExecutionFootprintList


           
            String commandLine = workingDirectory + "/openOfficeConvertMonitor.sh " + execMonitor.getWorkingDirectory() + "  /home/kulovits/dev/inputFile1.doc /home/kulovits/dev/outputFile2.pdf " + openOfficeServerPort;
           
            execMonitor.monitor(commandLine);

            ExecutionFootprintList taskPerformance = execMonitor.getTaskPerformance();
     
            System.out.println("Average virtual memory usage: " + taskPerformance.getAverageVirtualMemory() + " kb");
            System.out.println("Average shared memory usage: " + taskPerformance.getAverageSharedMemory() + " kb");
            System.out.println("Average resident size: " + taskPerformance.getAverageResidentSize() + " kb");
     
            double cpuTimeUsed = taskPerformance.getTotalCpuTimeUsed();
     
            long seconds = (long)(cpuTimeUsed/1000);
            double ms = (cpuTimeUsed - (cpuTimeUsed/1000)*1000);
            System.out.println("Total CPU time (seconds/miliseconds): " + seconds + ":" + ms);
           
View Full Code Here


        super.collectData(config, time, result);
       
        TopParser p = new TopParser(makeWorkingDirName(time) + "/top.log");
        p.parse();
       
        ExecutionFootprintList performance = p.getList();
        //log.debug(performance.toString());
       
        for (MeasurableProperty property: getMeasurableProperties()) {
            if (!property.getName().startsWith("machine:")) {
                Measurement m = new Measurement();
                m.setProperty(property);
                PositiveFloatValue v = (PositiveFloatValue) property.getScale().createValue();

                if (property.getName().equals(MigrationResult.MIGRES_USED_TIME)) {
                    v.setValue(performance.getTotalCpuTimeUsed());
                }
                if (property.getName().equals(MigrationResult.MIGRES_MEMORY_GROSS)) {
                    v.setValue(performance.getMaxVirtualMemory());
                }
                if (property.getName().equals(MigrationResult.MIGRES_MEMORY_NET)) {
                    v.setValue(performance.getMaxResidentSize());
                }


                if (property.getName().equals("performance:averageResidentSize")) {
                    v.setValue(performance.getAverageResidentSize());
                } else if (property.getName().equals("performance:averageSharedMemory")) {
                    v.setValue(performance.getAverageSharedMemory());
                } else if (property.getName().equals("performance:averageVirtualMemory")) {
                    v.setValue(performance.getAverageVirtualMemory());
                } else if (property.getName().equals("performance:maxResidentSize")) {
                    v.setValue(performance.getMaxResidentSize());
                } else if (property.getName().equals("performance:maxSharedMemory")) {
                    v.setValue(performance.getMaxSharedMemory());
                } else if (property.getName().equals("performance:maxVirtualMemory")) {
                    v.setValue(performance.getMaxVirtualMemory());
                } else if (property.getName().equals("performance:totalCpuTimeUsed")) {
                    v.setValue(performance.getTotalCpuTimeUsed());
                }
                m.setValue(v);
                result.getMeasurements().put(property.getName(), m);
            }
        }
View Full Code Here

           
            String commandLine = workingDirectory + "/openOfficeConvertMonitor.sh " + execMonitor.getWorkingDirectory() + "  /home/kulovits/dev/inputFile1.doc /home/kulovits/dev/outputFile2.pdf " + openOfficeServerPort;
           
            execMonitor.monitor(commandLine);

            ExecutionFootprintList taskPerformance = execMonitor.getTaskPerformance();
     
            System.out.println("Average virtual memory usage: " + taskPerformance.getAverageVirtualMemory() + " kb");
            System.out.println("Average shared memory usage: " + taskPerformance.getAverageSharedMemory() + " kb");
            System.out.println("Average resident size: " + taskPerformance.getAverageResidentSize() + " kb");
     
            double cpuTimeUsed = taskPerformance.getTotalCpuTimeUsed();
     
            long seconds = (long)(cpuTimeUsed/1000);
            double ms = (cpuTimeUsed - (cpuTimeUsed/1000)*1000);
            System.out.println("Total CPU time (seconds/miliseconds): " + seconds + ":" + ms);
           
View Full Code Here

        super.collectData(config, time, result);
       
        TopParser p = new TopParser(makeWorkingDirName(time) + "/top.log");
        p.parse();
       
        ExecutionFootprintList performance = p.getList();
       
        for (Measure measure: getMeasures()) {
            if (!measure.getUri().startsWith("machine:")) {
                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(performance.getTotalCpuTimeUsed());
                }
                if (measure.getUri().equals(MigrationResult.MIGRES_MEMORY_GROSS)) {
                    v.setValue(performance.getMaxVirtualMemory());
                }
                if (measure.getUri().equals(MigrationResult.MIGRES_MEMORY_NET)) {
                    v.setValue(performance.getMaxResidentSize());
                }


                if (measure.getUri().equals("performance:averageResidentSize")) {
                    v.setValue(performance.getAverageResidentSize());
                } else if (measure.getUri().equals("performance:averageSharedMemory")) {
                    v.setValue(performance.getAverageSharedMemory());
                } else if (measure.getUri().equals("performance:averageVirtualMemory")) {
                    v.setValue(performance.getAverageVirtualMemory());
                } else if (measure.getUri().equals("performance:maxResidentSize")) {
                    v.setValue(performance.getMaxResidentSize());
                } else if (measure.getUri().equals("performance:maxSharedMemory")) {
                    v.setValue(performance.getMaxSharedMemory());
                } else if (measure.getUri().equals("performance:maxVirtualMemory")) {
                    v.setValue(performance.getMaxVirtualMemory());
                } else if (measure.getUri().equals("performance:totalCpuTimeUsed")) {
                    v.setValue(performance.getTotalCpuTimeUsed());
                }
                m.setValue(v);
                result.getMeasurements().put(measure.getUri(), m);
            }
        }
View Full Code Here

TOP

Related Classes of at.tuwien.minimee.util.ExecutionFootprintList

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.