This tool is used to monitor device memory info base on adb command and python, data is saved to CSV file, and can be used to make Excel chart.
###Note:
- adb should be added in environment path;
- python code is based Python3.x;
- Excel chart may need adjust depend on data size.
- Example chart:
###User guide:
-
Connect your mobile phone to pc;
-
Run the script, and input process you will monitor, for example: com.zebra.carcloud.gate;
Please input the process name:
-
Input catch interval in seconds, such as 10, too small is meaningless;
Please input the catch interval(second, value should >= 10):
-
When the script run for while, the data is saved at:
%USER%\PythonAndroidMonitor directory
On windows, it's C:\Users%user name%\Desktop\PythonAndroidMonitor%datetime%, the directory name is last run datetime.
-
Open the folder,mem_history.txt record detail info and mem_abstract.CSV record abstract info.
mem_abstract.CSV colums: PID,ProcessName,Datetime,PSS(KB)
-
Open 内存占用情况.xlsx.
-
In Sheet1, Click '数据' in tool bar,and then click '全部刷新',and select the CSV file created, wait till data changed, you can find chart in Sheet2.
Sometime, you can adjust chart style depends on data size.