Examples of HeapStatistics


Examples of org.jnode.vm.facade.HeapStatistics

            SimpleObjectFilter f = new SimpleObjectFilter();
            f.setClassName(className.getValues());
            filter = f;
        }
       
        final HeapStatistics stats = VmUtils.getVm().getHeapManager().getHeapStatistics(filter);
       
        if (argMinInstanceCount.isSet()) {
            stats.setMinimumInstanceCount(argMinInstanceCount.getValue());
        }
        if (argMinTotalSize.isSet()) {
            stats.setMinimumTotalSize(argMinTotalSize.getValue());
        }

        BufferedWriter writer = new BufferedWriter(getOutput().getWriter(), 2048);
        try {
            stats.writeTo(writer);
        } finally {
            writer.flush();
        }
    }
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.