View Javadoc

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