Skip to main content

Android 性能调优工具

Project description

AndPerf

Android 上的一些性能调优工具

安装

pip3 install andperf

使用

andperf dev-screen

dev_screen.png

andperf stat-thread

stat_t.png

andperf top-activity

top_activity.png

andperf fps

fps.png

andperf gfx-hist

gfx_historgram.png

andperf meminfo-pie

meminfo_pie.png

andperf meminfo-trend

meminfo_trend.png

完整命令列表

andperf config  设置用户自定义配置
andperf cpuinfo 查看
andperf dev-mem 查看设备内存信息
andperf dev-screen 查看设备屏幕信息
andperf dump-config 查看当前的用户自定义配置
andperf dump-layout 导出当前栈顶Activity布局,并在浏览器打开
andperf fps 计算fps,最后会绘制一张fps变化图
andperf gfx-hist 查看gfx每帧绘制耗时分布直方图
andperf gfx-reset reset app 的gfxinfo,重新开始统计
andperf gfxinfo 查看app的gfxinfo信息
andperf meminfo 查看app的meminfo信息
andperf meminfo-pie 将当前app的各部分内存占用按照饼图展示
andperf meminfo-trend 展示app各部分内存随时间的变化
andperf screencap 截图并在浏览器打开
andperf stat-thread 统计一段时间内app进程内,各线程获得到的时间片占比
andperf systrace 调用Android systrace 命令,并在chrome中打开
andperf top-activity 查看当前栈顶Activity
andperf top-app 查看当前栈顶App

config

config 指定app package name,可以在执行其它指令时节省很多输入

andperf config --app=com.meelive.ingkee

LICENSE

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

andperf-0.0.1b1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

andperf-0.0.1b1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file andperf-0.0.1b1.tar.gz.

File metadata

  • Download URL: andperf-0.0.1b1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for andperf-0.0.1b1.tar.gz
Algorithm Hash digest
SHA256 824090a9c5b4666f28fb3abbe95370200a2adfccf88ffc02c78b3b286ff56522
MD5 3b33d2b89043357dc4b2e5d0a0984104
BLAKE2b-256 7b30245a9fb79df2042ecd910d7229d505a6fcba5ac35a65702a6d5e4c956cec

See more details on using hashes here.

File details

Details for the file andperf-0.0.1b1-py3-none-any.whl.

File metadata

  • Download URL: andperf-0.0.1b1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for andperf-0.0.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 2233c5d07dc304293d9dd18cd1964607efb4b316807e082c7037ac5ce12e0eb5
MD5 29b0870e3b57a05c6062fb6d2573ff43
BLAKE2b-256 4b0c42f562871235783c5e16da0aac72c4d82cd0ebfa9033322422e55bca3e0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page