org.mindswap.pellet.utils
Class MemUtils
java.lang.Object
org.mindswap.pellet.utils.MemUtils
public class MemUtils
- extends java.lang.Object
A simple class to experiment with your JVM's garbage collector
and memory sizes for various data types.
- Author:
- Vladimir Roubtsov
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BYTES_PER_MB
public static final double BYTES_PER_MB
- See Also:
- Constant Field Values
MemUtils
public MemUtils()
runGC
public static void runGC()
usedMemory
public static long usedMemory()
freeMemory
public static long freeMemory()
totalMemory
public static long totalMemory()
mb
public static double mb(long bytes)
printUsedMemory
public static void printUsedMemory(java.lang.String msg)
printMemory
public static void printMemory(java.lang.String msg,
long mem)
Copyright © 2004 Evren Sirin. All Rights Reserved.