int availProc = Runtime.getRuntime().availableProcessors();
long total = Runtime.getRuntime().totalMemory();
long free = Runtime.getRuntime().freeMemory();
long max = Runtime.getRuntime().maxMemory();
Toast.makeText(getApplicationContext(),availProc + "\nTM "
+ Long.toString(total) + "\nFM " +
Long.toString(free)
+ "\nMM" + Long.toString(max),
Toast.LENGTH_SHORT).show();
}
--~--~---------~--~----~------------~-------~--~----~
최소 heap 정하기, MAX는 못바꿈
VMRuntime.getRuntime().setMinimumHeapSize( long l );
------------------------------------------------------
cat proc/meminfo
http://www.suppul.com/blog/main/192?TSSESSIONwwwsuppulcomblog=51f5eebf5ad510e43b1dbf99485bd5e9
댓글 없음:
댓글 쓰기