Skip to content

lancelodliu/PerfManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PerfManager

Description

  • 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

Usage

# 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)
  1. Plug in your phone, enable USB Debug.
  2. Instantialize a PerfManager using your app's package name(essential) and device id(option)
  3. Open your app in your phone
  4. Run python main.py in command line to start collecting data

About

ADB tool to collect performance of mobile app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages