Examples of MachineStatistics


Examples of org.openquark.cal.machine.MachineStatistics

                runtime.setTraceFilters( filters );

                result = null;
                error = null;

                MachineStatistics statsBefore = wkspcMgr.getMachineStatistics();
                MachineStatistics statsBeforeForModule = wkspcMgr.getMachineStatisticsForModule(targetModule);

                try {
                    logger.log(Level.INFO, "\nrunning: " + runningCode);

                    result = runtime.exec (entryPoint, new Object[]{});
                } catch (CALExecutorException e) {
                    logger.log(Level.INFO, "Error while executing: " + e.getMessage());
                    error = e;
                } catch (Exception e) {
                    logger.log(Level.INFO, "Unable to execute due to an internal error.  Please contact Business Objects.  " + e.toString ());
                    return;

                } catch (Error e){
                    logger.log(Level.INFO, "Unable to execute due to an internal error.  Please contact Business Objects.  " + e.toString ());
                    return;
                }

                if (isShowRuntimes()) {
                    displayRunTimes (executionTimeGenerator.getStatistics());
                }

                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
Copyright © 2018 www.massapi.com. 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.