-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
520 additions
and
481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,3 +131,6 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# report | ||
report/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ We are committed to solving inefficient, cumbersome test execution, and our goal | |
|
||
## Installation | ||
``` | ||
1.Python:3.6+ | ||
1.Python:3.10+ (python3.6+ lower v2.5.3) | ||
2.pip install -U solox | ||
3.pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple -U solox (Recommend) | ||
|
@@ -42,21 +42,24 @@ python -m solox | |
### customize | ||
|
||
```shell | ||
python -m solox --host={ip} --port=50003 | ||
python -m solox --host={ip} --port={port} | ||
``` | ||
|
||
## Collect in python | ||
```python | ||
from solox.public.apm import APM | ||
# solox version >= 2.1.2 | ||
|
||
apm = APM(pkgName='com.bilibili.app.in',deviceId='ca6bd5a5',platform='Android', surfaceview='true') # surfaceview: false = gpxinfo | ||
apm = APM(pkgName='com.bilibili.app.in',deviceId='ca6bd5a5',platform='Android', surfaceview=True) | ||
# apm = APM(pkgName='com.bilibili.app.in', platform='iOS') only supports one device | ||
# surfaceview: false = gfxinfo (Developer - GPU rendering mode - adb shell dumpsys gfxinfo) | ||
|
||
cpu = apm.collectCpu() # % | ||
memory = apm.collectMemory() # MB | ||
flow = apm.collectFlow() # KB | ||
fps = apm.collectFps() # HZ | ||
battery = apm.collectBattery() # level:% temperature:°C | ||
battery = apm.collectBattery() # level:% temperature:°C current:mA voltage:mV power:w | ||
gpu = apm.collectGpu() # % only supports ios | ||
``` | ||
|
||
## Collect in API | ||
|
@@ -71,9 +74,10 @@ Windows: start /min python3 -m solox & | |
|
||
### Request apm data from api | ||
``` | ||
http://{ip}:50003/apm/collect?platform=Android&deviceid=ca6bd5a5&pkgname=com.bilibili.app.in&apm_type=cpu | ||
- Android: http://{ip}:{port}/apm/collect?platform=Android&deviceid=ca6bd5a5&pkgname=com.bilibili.app.in&target=cpu | ||
- iOS: http://{ip}:{port}/apm/collect?platform=iOS&pkgname=com.bilibili.app.in&target=cpu | ||
apm_type in ['cpu','memory','network','fps','battery'] | ||
target in ['cpu','memory','network','fps','battery'] | ||
``` | ||
|
||
## PK Model | ||
|
@@ -95,6 +99,3 @@ apm_type in ['cpu','memory','network','fps','battery'] | |
|
||
- https://github.com/alibaba/taobao-iphone-device | ||
|
||
## Communicate | ||
- Email: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ SoloX - Android/iOS性能数据实时采集工具。 | |
|
||
## 安装 | ||
``` | ||
1.Python:3.6+ | ||
1.Python:3.6+ (python3.6+ 小于v2.5.3) | ||
2.pip install -U solox | ||
3.pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple -U solox (在国内推荐使用镜像下载) | ||
|
@@ -42,21 +42,23 @@ python -m solox | |
### 自定义 | ||
|
||
```shell | ||
python -m solox --host={ip} --port=50003 | ||
python -m solox --host={ip} --port={port} | ||
``` | ||
|
||
## 使用python收集 | ||
```python | ||
from solox.public.apm import APM | ||
# solox version >= 2.1.2 | ||
|
||
apm = APM(pkgName='com.bilibili.app.in',deviceId='ca6bd5a5',platform='Android', surfaceview='true') # surfaceview: false = gpxinfo | ||
apm = APM(pkgName='com.bilibili.app.in',deviceId='ca6bd5a5',platform='Android', surfaceview=True) | ||
# apm = APM(pkgName='com.bilibili.app.in', platform='iOS') only supports one device | ||
# surfaceview: false = gfxinfo (手机开发者-GPU呈现模式- adb shell dumpsys gfxinfo) | ||
cpu = apm.collectCpu() # % | ||
memory = apm.collectMemory() # MB | ||
flow = apm.collectFlow() # KB | ||
fps = apm.collectFps() # HZ | ||
battery = apm.collectBattery() # level:% temperature:°C | ||
battery = apm.collectBattery() # level:% temperature:°C current:mA voltage:mV power:w | ||
gpu = apm.collectGpu() # % only supports ios | ||
``` | ||
|
||
## 使用api收集 | ||
|
@@ -71,9 +73,10 @@ Windows: start /min python3 -m solox & | |
|
||
### 2.通过api请求性能数据 | ||
``` | ||
http://{ip}:50003/apm/collect?platform=Android&deviceid=ca6bd5a5&pkgname=com.bilibili.app.in&apm_type=cpu | ||
- Android: http://{ip}:{port}/apm/collect?platform=Android&deviceid=ca6bd5a5&pkgname=com.bilibili.app.in&target=cpu | ||
- iOS: http://{ip}:{port}/apm/collect?platform=iOS&pkgname=com.bilibili.app.in&target=cpu | ||
apm_type in ['cpu','memory','network','fps','battery'] | ||
target in ['cpu','memory','network','fps','battery'] | ||
``` | ||
|
||
## 对比模式 | ||
|
@@ -95,7 +98,4 @@ apm_type in ['cpu','memory','network','fps','battery'] | |
|
||
- https://github.com/alibaba/taobao-iphone-device | ||
|
||
## 交流 | ||
- Email: [email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
from __future__ import absolute_import | ||
|
||
__version__ = '2.5.3' | ||
__version__ = '2.5.4' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.