1 package com.eviware.soapui.support.monitor; 2 3 /*** 4 * @author Angelo De Caro 5 */ 6 public class RuntimeMemoryMonitorSource implements MonitorSource { 7 8 private Runtime runtime = Runtime.getRuntime(); 9 10 public float getTotal() { 11 return runtime.totalMemory(); 12 } 13 14 public float getUsed() { 15 return runtime.totalMemory() - runtime.freeMemory(); 16 } 17 18 }