Package xbird.util.system.SystemUtils

Examples of xbird.util.system.SystemUtils.CPUInfo


        private CPUInfo prevCpuInfo;

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


            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

Related Classes of xbird.util.system.SystemUtils.CPUInfo

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.