public MemoryWatcher getMemoryUsage() {
return this.getMemoryUsage(MemoryMeasureUnit.mbytes);
}
public MemoryWatcher getMemoryUsage(MemoryMeasureUnit mu) {
MemoryWatcher muc = new MemoryWatcher(
_runtime.freeMemory(),
_runtime.totalMemory(),
_runtime.maxMemory());
muc.setMu(mu);
return muc;
}