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.1b4.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

andperf-0.0.1b4-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: andperf-0.0.1b4.tar.gz
  • Upload date:
  • Size: 7.2 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.1b4.tar.gz
Algorithm Hash digest
SHA256 c13019c284abfad874a55c535049e15785a3e9eb289ca4661837f9f176226daa
MD5 9990ac74b9329ec109d35b90cb505dcf
BLAKE2b-256 224b8e99ed30fa17718f7b3be3af33d5f247048951b393dc471b4f36274de3cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: andperf-0.0.1b4-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.1b4-py3-none-any.whl
Algorithm Hash digest
SHA256 a23368d8fb5a711d24842bbcde16aa0cc0377db8f825a288f5f512a9cf3b36c7
MD5 6b1db8a3ca89659fe0617199847bd35f
BLAKE2b-256 e6c7c35c46abba6e094c4aad82b659d2b5518e9e49fd0e6ad77e080f578c6ca6

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