smart-test-ti / SoloX

💯SoloX - Real-time collection tool for Android/iOS performance data.(Android性能测试android performance\iOS性能测试ios performance\移动端性能测试mobile performance\APP性能测试app performance\app性能测试工具)
https://smart-test-ti.github.io/solox
MIT License
993 stars 177 forks source link

【QA】手动收集性能指标后,怎么生成html报告 #150

Closed loneyao closed 1 year ago

loneyao commented 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

rafa0128 commented 1 year ago

等2.6.1版本就会有,但下个版本会一段时间后才会发布,看心情和精力

rafa0128 commented 1 year ago

2.6.1已经有这个功能