Fork of the Fernflower decompiler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fernflower/test/test/util/MemoryMonitor.java

25 lines
414 B

package test.util;
public class MemoryMonitor implements Runnable {
public static boolean run = false;
public void run() {
while(run) {
try {
Thread.sleep(500);
} catch(InterruptedException ex) {
ex.printStackTrace();
}
//Runtime.getRuntime().gc();
System.err.println((Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory())/(1024*1024));
}
}
}