Examples of GCStatistics


Examples of org.jnode.vm.facade.GCStatistics

            out.format(fmt_out, str_mem_free, NumberUtils.toBinaryByte(rt.freeMemory()));

            out.println(str_start);
            long start = System.currentTimeMillis();
            rt.gc();
            GCStatistics stats = VmUtils.getVm().getHeapManager().getStatistics();
            Thread.yield();
            long end = System.currentTimeMillis();

            out.format(fmt_out, str_mem_size, NumberUtils.toBinaryByte(rt.totalMemory()));
            out.format(fmt_out, str_mem_free, NumberUtils.toBinaryByte(rt.freeMemory()));
            out.format(fmt_out, str_time, (end - start) + "ms");
            out.format(fmt_out, str_stats, stats.toString());
        }
    }
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.