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

Uploaded Source

Built Distribution

andperf-0.0.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file andperf-0.0.3.tar.gz.

File metadata

  • Download URL: andperf-0.0.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for andperf-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f134ad670de37774a03fec918124e9a254d11cbedc6268ab25a80caa4777646c
MD5 8193d1bde6f9b4a44f8d32b577b67f7d
BLAKE2b-256 47d0a26e4099eaf46bc9c7fcd960a264ac4472f2fe2590d636d4f74bf6000957

See more details on using hashes here.

File details

Details for the file andperf-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: andperf-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for andperf-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4d7e0d9a53c3b61ead410ac234c45694156a0f96e68b2c09da471e0952fc00f4
MD5 65f26dca929ce89f21363d1aaaa7e689
BLAKE2b-256 a026a2f3982bf4ba4decba48c4b9515636c99aedbe0f34ad9f74685ef43b0d4d

See more details on using hashes here.

Supported by

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