0
点赞
收藏
分享

微信扫一扫

像uniapp image标签一样对图片进行缩放和裁剪

已经 2024 年 3 月中旬了,ios17 版本出来也已经快半年了。
我看到业界主流开源的 ios 性能测试工具都没有还没支持 ios17。包括 tidevice,py-ios-device,solox。
又因为有大佬开源了可以和 ios17 通信的 pymobiledevice3。
所以我这里组装了下,开源一个 ios17 性能获取的脚本。给需要的同学先临时用一下。然后也希望社区能够早日整合 ios17 性能测试的能力吧。

github:GitHub - 15525730080/iOS17_perf: ios17以上设备性能统计脚本/IOS 17 and above device performance statistics script

iOS17_perf

ios17 以上设备性能统计脚本/IOS 17 and above device performance statistics script

使用教程

pip install -r requirements.txt
 

修改 main.py 中的
bundle_id = "target_app_name"
udid = "target_ios_udid"
将 bundle_id 指向需要测试的 app 名称,udid 指向目标设备
例如:
bundle_id = "com.alipay.iphoneclient" # 测试支付宝的性能
udid = "00008110-0012148E1E8B801E" #ios 设备 udid、app 包名获取获取参见:py-ios-device
 

sudo python main.py # 执行时需要使用管理员权限/sudo
 

示例日志

(ven) ➜ iOS17_perf git:(main) ✗ sudo python main.py
2024-03-15 14:32:06 xxxxxxxxxxxxx pymobiledevice3.cli.remote[94700] INFO tunnel created
UDID: 00008110-0012148E1E8B801E
ProductType: iPhone14,5
ProductVersion: 17.2.1
Interface: utun8
Protocol: TunnelProtocol.QUIC
RSD Address: fd05:d8ec:233d::1
RSD Port: 59102
Use the follow connection option:
--rsd fd05:d8ec:233d::1 59102
2024-03-15 14:32:07 [INFO] [Instrument] base.py[line:291] Sysmontap start ...
2024-03-15 14:32:07 [INFO] [Instrument] base.py[line:292] wait for data ...
2024-03-15 14:32:07 [INFO] [Instrument] base.py[line:309] {'global': ['Alloc system memory', 'Allocated PB Size', 'Device Utilization %', 'In use system memory', 'In use system memory (driver)', 'IOGLBundleName', 'recoveryCount', 'Renderer Utilization %', 'SplitSceneCount', 'TiledSceneBytes', 'Tiler Utilization %', 'CoreAnimationFramesPerSecond'], 'process': []}
2024-03-15 14:32:07 [INFO] [Instrument] base.py[line:310] ['Built-In']
{'currentTime': '2024-03-15 14:32:07.957304', 'fps': 0}
{'Pid': 6944, 'Name': 'AlipayWallet', 'CPU': '0 %', 'Memory': '241.00 MiB', 'DiskReads': '562.65 MiB', 'DiskWrites': '1.79 GiB', 'Threads': 65}
{'currentTime': '2024-03-15 14:32:08.976718', 'fps': 58}
{'Pid': 6944, 'Name': 'AlipayWallet', 'CPU': '42.39 %', 'Memory': '241.03 MiB', 'DiskReads': '562.66 MiB', 'DiskWrites': '1.79 GiB', 'Threads': 65}
{'currentTime': '2024-03-15 14:32:09.990906', 'fps': 55}
{'Pid': 6944, 'Name': 'AlipayWallet', 'CPU': '42.09 %', 'Memory': '241.03 MiB', 'DiskReads': '562.66 MiB', 'DiskWrites': '1.80 GiB', 'Threads': 65}
{'currentTime': '2024-03-15 14:32:11.002227', 'fps': 59}
{'Pid': 6944, 'Name': 'AlipayWallet', 'CPU': '41.8 %', 'Memory': '241.03 MiB', 'DiskReads': '562.66 MiB', 'DiskWrites': '1.80 GiB', 'Threads': 65}
{'currentTime': '2024-03-15 14:32:12.018603', 'fps': 60}
{'Pid': 6944, 'Name': 'AlipayWallet', 'CPU': '50.16 %', 'Memory': '241.05 MiB', 'DiskReads': '564.55 MiB', 'DiskWrites': '1.80 GiB', 'Threads': 68}

从0到1开发压力测试框架

举报

相关推荐

0 条评论