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

SoloX has stopped updating, and 2.6.2 is the last version. #157

Closed rafa0128 closed 1 year ago

rafa0128 commented 1 year ago

就SoloX目前的技术方案,基本做到头了,2.6.2是最后一个版本,不会继续更新,请需要二次开发的clone/forks代码到自己的仓库。新问题不再回复和解决。

loneyao commented 1 year ago

if name == 'main': while True: cmd = os.popen('adb -s %s shell "dumpsys window | grep mCurrentFocus"' % equipment) result = cmd.read() if packageName not in result: print('停止收集') break else: cpu = apm.collectCpu() # % jank 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 apm = APM(pkgName=packageName, platform='Android', deviceId=equipment, surfaceview=True, noLog=False, pid=None, duration=300) # duration : second

        print('生成报告')
        apm.collectAll()

我目前是用判断应用是不是处于前台,来终止循环,但是有个问题。采集这块,终止会有问题。

rafa0128 commented 1 year ago

if name == 'main': while True: cmd = os.popen('adb -s %s shell "dumpsys window | grep mCurrentFocus"' % equipment) result = cmd.read() if packageName not in result: print('停止收集') break else: cpu = apm.collectCpu() # % jank 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 apm = APM(pkgName=packageName, platform='Android', deviceId=equipment, surfaceview=True, noLog=False, pid=None, duration=300) # duration : second

        print('生成报告')
        apm.collectAll()

我目前是用判断应用是不是处于前台,来终止循环,但是有个问题。采集这块,终止会有问题。

靠自己了

Nightwish555 commented 1 year ago

大佬接下来是考虑换技术方案,还是就暂时搁置了?

rafa0128 commented 1 year ago

大佬接下来是考虑换技术方案,还是就暂时搁置了?

没精力做了,可能会修复bug,看bug情况