- Check Memory Use of Certain Process (KitKat only)
// Show the memory use status of certain process over last x hour
$ adb shell dumpsys procstats [<process name>] [--hours <last x hour>]
ex. $ adb shell dumpsys procstats com.example.service --hours 1
// Show the current memory use status of certain process
$ adb shell dumpsys meminfo [<process name>]
ex. $ adb shell dumpsys meminfo com.example.service
REF:
http://android-developers.blogspot.tw/2014/01/process-stats-understanding-how-your.html - Terms About Memory Use
VSS - Virtual Set Size
RSS - Resident Set Size
PSS - Proportional Set Size
USS - Unique Set Size
REF:
http://fecbob.pixnet.net/blog/post/35999773-%5Bandroid%5D-memory%3A-vss-rss-pss-uss--
2014年5月27日 星期二
[程式] Memory Analysis
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言