@Grab(group='com.pi4j', module='pi4j-core', version='0.0.5') import com.pi4j.system.* println "total memory:${SystemInfo.getMemoryTotal()/1024/1024}M" println "used memory:${SystemInfo.getMemoryUsed()/1024/1024}M" println "free memory:${SystemInfo.getMemoryFree()/1024/1024}M"実行結果
total memory:437.49609375M used memory:422.93359375M free memory:14.5625M
0 件のコメント:
コメントを投稿