No project description provided
Project description
[TOC]
##简介
利用工具,即可对android移动端APP进行快速的性能测试(CPU、内存)、开发日志的查看、Crash日志查看统计等 测试任务就是保证功能的正常,并且不会有遗留的内存对象,造成内存泄漏问题
##环境要求
- macOS
- Python3.6及以上
- android adb
##使用 ##测试流程 ###0. 前提 使用时,通过USB线连接手机和电脑即可。
###1. 命令测试 运行heimdall3 命令,查看帮助
###字段说明
device_id: 是手机的device id, 通过adb 查询
save_path:保存的目录,默认是当前目录
package_process: 运行的程序
peformance_interal: 是读取的memory 间隔时间, 默认是5s
hrof_interal:是拉取内存快照的间隔时间,默认是10分钟
###2. 代码测试 开始监听
p = PerformanceManger()
p.begin(device_id='HT7131700092', save_path='',package_process='', peformance_interal=5, hrof_interal=300)
结束监听
p.end()
###3. 测试场景
- 新开发或者改进的某项功能,随着测试功能的反复使用
- 长时间运行的稳定性测试
- 反馈切换页面,有数据缓存的
###4. 测试重点
- 多张图片的界面,大图片
- 网络传输大量的数据
- 后台异步给前端
###5. 查看结果
-
默认保存在”results/device_id/日期_时间“文件下,如
results/HT7131700092/20190114_081654
或者保存路径“save_path/device_id/日期_时间“下。
- 查看Dalvik和 Native 内存值的内存值曲线,内存变化的波动情况
###6. 确定问题
- 一直在增长
- 大幅度波动 使用 Memory Analyzer Tool (MAT)分析问题
##附录 ####代码流程
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
heimdall-android-0.0.6.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for heimdall_android-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f71203a92ddce31709a60d435ee16a6261bf40c2c6c8c466a409ad6309ef6340 |
|
MD5 | 1bb40015480a27128e4624cc68b07bca |
|
BLAKE2b-256 | ea818376f44f78b60b1da15e4e2f426f16eece3e96a3b3db81ebe67e9e8450a2 |