Metadata-Version: 2.1
Name: andperf
Version: 0.0.3
Summary: Android 性能调优工具
Home-page: https://github.com/weixinfree/AndPerf
Author: WangWei
Author-email: 2317073226@qq.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: matplotlib (==3.0.0)
Requires-Dist: numpy (==1.15.1)
Requires-Dist: pandas (==0.23.4)
Requires-Dist: fire (==0.1.3)

# AndPerf

Android 上的一些性能调优工具


## 安装
```bash
pip3 install andperf
```

## 使用
#### `andperf dev-screen`
![dev_screen.png](https://raw.githubusercontent.com/weixinfree/AndPerf/master/images/dev_screen.png)
#### `andperf stat-thread`
![stat_t.png](https://raw.githubusercontent.com/weixinfree/AndPerf/master/images/stat_t.png)
#### `andperf top-activity`
![top_activity.png](https://raw.githubusercontent.com/weixinfree/AndPerf/master/images/top_activity.png)
#### `andperf fps`
![fps.png](https://raw.githubusercontent.com/weixinfree/AndPerf/master/images/fps.png)
#### `andperf gfx-hist`
![gfx_historgram.png](https://raw.githubusercontent.com/weixinfree/AndPerf/master/images/gfx_historgram.png)
#### `andperf meminfo-pie`
![meminfo_pie.png](https://raw.githubusercontent.com/weixinfree/AndPerf/master/images/meminfo_pie.png)
#### `andperf meminfo-trend`
![meminfo_trend.png](https://raw.githubusercontent.com/weixinfree/AndPerf/master/images/meminfo_trend.png)

## 完整命令列表

```bash
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，可以在执行其它指令时节省很多输入

```bash
andperf config --app=com.meelive.ingkee
```

## LICENSE
[MIT](https://github.com/weixinfree/AndPerf/blob/master/LICENSE)

