Package xbird.util.lang.SystemUtils

Examples of xbird.util.lang.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.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

TOP

Related Classes of xbird.util.lang.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.