Package org.sf.bee.profiler.components

Examples of org.sf.bee.profiler.components.MemoryWatcher


    public MemoryWatcher getMemoryUsage() {
        return this.getMemoryUsage(MemoryMeasureUnit.mbytes);
    }

    public MemoryWatcher getMemoryUsage(MemoryMeasureUnit mu) {
        MemoryWatcher muc = new MemoryWatcher(
                _runtime.freeMemory(),
                _runtime.totalMemory(),
                _runtime.maxMemory());
        muc.setMu(mu);
        return muc;
    }
View Full Code Here


        }
        return result;
    }

    public String getMemoryReport(MemoryMeasureUnit mu) {
        MemoryWatcher muc = this.getMemoryUsage(mu);

        return muc.toString();
    }
View Full Code Here

TOP

Related Classes of org.sf.bee.profiler.components.MemoryWatcher

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.