Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solox 2.9.3采集ios cpu%指标时采集间隔较长,大概10秒采集一次,怎么改成1秒(安卓差不多是1秒监控一次) #295

Open
xingyuxiaotianshi opened this issue Nov 6, 2024 · 1 comment

Comments

@xingyuxiaotianshi
Copy link

xingyuxiaotianshi commented Nov 6, 2024

场景:我有一个测试demo,启动demo后每30s会执行一次定时任务,想看一下定时任务执行时app资源使用情况
问题:iPhone15.1上启动app,通过solox监控10分钟,ios只能抓到几次,看了下excel中的监控数据,差不多10秒监控一次,相同场景下安卓就没有该问题,详情如图:
ios和安装采集的cpu内存对比

@gaige8934
Copy link

D:\code\SoloX\venv\Scripts\python.exe D:\code\SoloX\getios.py
[I 241203 15:36:02 common:145] Connected devices: ['xxxx']
[I 241203 15:36:09 apm:725] cpu: {'appCpuRate': 0.0, 'systemCpuRate': 10.26}
[I 241203 15:36:17 apm:725] cpu: {'appCpuRate': 0.0, 'systemCpuRate': 9.36}
[I 241203 15:36:24 apm:725] cpu: {'appCpuRate': 0.0, 'systemCpuRate': 12.2}
[I 241203 15:36:31 apm:725] cpu: {'appCpuRate': 0.0, 'systemCpuRate': 14.49}
[I 241203 15:36:39 apm:725] cpu: {'appCpuRate': 0.0, 'systemCpuRate': 12.96}

我用命令单独获取iOS设备的CPU信息,貌似iOS获取一次数据都要7s以上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants