📄 diffmemoryexoloreritem.java
字号:
package SOMA.utility;
import java.io.*;
import java.util.*;
/** Restituisce la differenza MEMORIA_TOTALE - MEMORIA_LIBERA = <B>MEMORIA UTILIZZATA</B>.
*
* @author Livio Profiri
*/
public class DiffMemoryExolorerItem extends SOMA.explorer.ExplorerItem
{
public DiffMemoryExolorerItem()
{
super( "Returns TOTAL - FREE memory." );
}
public Object Execute( Collection Parameters, PrintStream out )
{
long mem = Runtime.getRuntime().totalMemory() -
Runtime.getRuntime().freeMemory() ;
out.println( "The TOTAL - FREE memory: " + mem );
return new Long( mem );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -