Examples of CPUInfo


Examples of xbird.util.lang.SystemUtils.CPUInfo

            this.prevCpuInfo = new CPUInfo();
        }

        @Override
        public void run() {
            CPUInfo newCpuInfo = SystemUtils.getCPUInfo(prevCpuInfo);
            float cpuUsage = newCpuInfo.getCpuUsage();
            long heapUsed = SystemUtils.getHeapUsedMemory();
            String line = "cpuUsage: " + String.format("%.2f", cpuUsage) + " %, usedHeap: "
                    + StringUtils.displayBytesSize(heapUsed);
            LOG.info(line);
            this.prevCpuInfo = newCpuInfo;
View Full Code Here

Examples of xbird.util.system.SystemUtils.CPUInfo

        private CPUInfo prevCpuInfo;

        public PerfmonTask() {
            super();
            this.prevCpuInfo = new CPUInfo();
        }
View Full Code Here

Examples of xbird.util.system.SystemUtils.CPUInfo

            this.prevCpuInfo = new CPUInfo();
        }

        @Override
        public void run() {
            CPUInfo newCpuInfo = SystemUtils.getCPUInfo(prevCpuInfo);
            float cpuUsage = newCpuInfo.getCpuLoad();
            long heapUsed = SystemUtils.getHeapUsedMemory();
            if(LOG.isDebugEnabled()) {
                String line = "cpuUsage: " + String.format("%.2f", cpuUsage) + " %, usedHeap: "
                        + StringUtils.displayBytesSize(heapUsed);
                LOG.debug(line);
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.