Skip to main content

SoloX - Real-time collection tool for Android/iOS performance data.

Project description

English | 中文 | DocForAndroid

SoloX

solox preview

Preview

SoloX - Real-time collection tool for Android/iOS performance data.

We are committed to solving inefficient, cumbersome test execution, and our goal is Simple Test In SoloX!

Installation

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)

notice: If Windows users need to test ios, install and start Itunes

Startup SoloX

default

python -m solox

customize

python -m solox --host={ip} --port={port}

Collect in 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)
# 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 current:mA voltage:mV power:w
gpu = apm.collectGpu() # % only supports ios

Collect in API

Start the service in the background

# solox version >= 2.1.5

macOS/Linux: nohup python3 -m solox &
Windows: start /min python3 -m solox &

Request apm data from api

- 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

target in ['cpu','memory','network','fps','battery']

PK Model

  • 2-devices: test the same app on two different phones
  • 2-apps: test two different apps on two phones with the same configuration

Browser

Chrome

Terminal

Thanks

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

solox-2.5.5.tar.gz (5.5 MB view hashes)

Uploaded Source

Built Distribution

solox-2.5.5-py3-none-any.whl (5.5 MB view hashes)

Uploaded Python 3

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