Package org.openquark.cal.internal.machine.lecc

Examples of org.openquark.cal.internal.machine.lecc.LECCMachineStatistics


     */
    private void command_classFileSize (boolean includeStatic, boolean includeDynamic) {
        if (getMachineType() == MachineType.LECC) {

            if (includeDynamic) {
                LECCMachineStatistics stats = (LECCMachineStatistics)getWorkspaceManager().getMachineStatistics();
                iceLogger.log(Level.INFO, "Total class file size  (dynamically loaded): " + stats.getNClassBytesLoaded() + " bytes");
                iceLogger.log(Level.INFO, "Total class file count (dynamically loaded): " + stats.getNClassesLoaded() + " classes");
            }
           
            if (LECCMachineConfiguration.isLeccRuntimeStatic() && includeStatic) {
                // Try to determine the total size of the generated class files on disk.
                SizeAndCount sizeAndCount = calcRepositorySize();
View Full Code Here


        }
       
        if (getMachineType() == MachineType.LECC) {
            int nMachineStatsObjects = performanceTestResults.getNMachineStatsObjects();
            for (int i = 0, n = nMachineStatsObjects; i < n; i++) {
                LECCMachineStatistics element = (LECCMachineStatistics)performanceTestResults.getNthMachineStatsObject(i);
                logInfo("Machine statistics for run " + i + ":\n" + element.toString());
            }
           
            if (nMachineStatsObjects > 1) {
                LECCMachineStatistics average = LECCMachineStatistics.getAverage(performanceTestResults.machineStats.subList(1, nMachineStatsObjects));
                logInfo("Average machine statistics (first run discarded):\n" + average.toString());
            }
        }
    }
View Full Code Here

                }

                if (isShowIncrementalMachineStats()) {
                    MachineStatistics statsAfter = wkspcMgr.getMachineStatistics();
                    if (wkspcMgr.getMachineType() == MachineType.LECC) {
                        LECCMachineStatistics incrementalStats = LECCMachineStatistics.getIncrementalStatistics((LECCMachineStatistics)statsBefore, (LECCMachineStatistics)statsAfter, (LECCMachineStatistics)statsBeforeForModule);
                        logger.log(Level.INFO, "Incremental machine statistics (after - before):\n" + incrementalStats);
                    } else {
                        logger.log(Level.INFO, "Machine statistics:\n" + statsAfter);
                    }
                }
View Full Code Here

TOP

Related Classes of org.openquark.cal.internal.machine.lecc.LECCMachineStatistics

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.