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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: andperf-0.0.1b3.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.1b3.tar.gz
Algorithm Hash digest
SHA256 368d08990c76ea6d594de82124a192efe5f4cc8f579575e2000e1a575f628c6f
MD5 c3a42a98327a40813301bbde9fab3311
BLAKE2b-256 1ddf34bba1fff9c8ecaeddf04a4d372cc36da5c13c112cc550d5bdb0a1c331da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: andperf-0.0.1b3-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.1b3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c787c9aa2073c4003918159d32aeed61299539334f922c84725c00169bb5cec
MD5 b04b4377d7b530fcc8959493214a0687
BLAKE2b-256 428fe6a9c41ab61c1b15ec6d4454d2c01faa4741ec3e06a7cce4883ff1011bf7

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