Runtime total memory

This commit is contained in:
Clisprail
2014-08-06 15:27:56 +02:00
parent bb4d7c6deb
commit 25d82bbad9
@@ -41,10 +41,14 @@ public class Runtime {
return rt.exec(cmdarray); return rt.exec(cmdarray);
} }
public long freeMemory(){ public long freeMemory() {
return rt.freeMemory(); return rt.freeMemory();
} }
public long totalMemory() {
return rt.totalMemory();
}
public void gc(){ public void gc(){
rt.gc(); rt.gc();
} }