💯SoloX - Real-time collection tool for Android/iOS performance data.(Android性能测试android performance\iOS性能测试ios performance\移动端性能测试mobile performance\APP性能测试app performance\app性能测试工具)
993
stars
177
forks
source link
【QA】手动收集性能指标后,怎么生成html报告 #150
Closed
loneyao closed 1 year ago
from solox.public.apm import APM from solox.public.common import Devices
d = Devices() pids = d.getPid(deviceId='emulator-5554', pkgName='com.bilibili.app.in')
apm = APM(pkgName='com.bilibili.app.in',deviceId='emulator-5554',platform='Android', surfaceview=True) cpu = apm.collectCpu() # % memory = apm.collectMemory() # MB flow = apm.collectFlow(wifi=True) # KB fps = apm.collectFps() # HZ battery = apm.collectBattery() # level:% temperature:°C current:mA voltage:mV power:w