- ADB tool to collect performance of mobile app:
- FPS
- CPU(in percentage)
- Memory(in KB)
- Network(in Byte/s)
- Need Android 6.0 and lower. 7.0 is NOT supported.
- Tested in Python 2.7, Xiaomi MIX and Huawei P9
- No need for ROOT privilige
# None works when there is only one device plugged in your computer
device = None
# set to your pkg name
pkg = "com.group.pkg.name"
pm = PerfManager(device, pkg)
for i in range(100):
print pm.fps_sample(), pm.cpu_sample(), pm.mem_sample(), pm.net_sample()
time.sleep(1)
- Plug in your phone, enable USB Debug.
- Instantialize a PerfManager using your app's package name(essential) and device id(option)
- Open your app in your phone
- Run
python main.py
in command line to start collecting data