YueChen-C / py-ios-device

IOS Professional Performance Testing Tool . You can get CPU, GPU, Memory , Lifecycle and other metrics from real iOS devices . IOS 专业性能测试工具
GNU General Public License v3.0
633 stars 179 forks source link

通过`pyidevice instruments monitor --filter=memory`命令拿到的内存信息不准确 #144

Open 986379041 opened 3 weeks ago

986379041 commented 3 weeks ago

Smartphone (please complete the following information):

Describe the bug 通过pyidevice instruments monitor --filter=memory命令拿到的内存信息很奇怪

Memory  >> {'App Memory': '2.80 TiB', 'Free Memory': '599.36 MiB', 'Cached Files': '1532.89 TiB', 'Compressed': '308.67 TiB', 'Memory Used': '-1685398451388416.00 Bytes', 'Wired Memory': '580.00 GiB', 'Swap Used': '5.38 KiB'}
Memory  >> {'App Memory': '2.80 TiB', 'Free Memory': '688.08 MiB', 'Cached Files': '1532.89 TiB', 'Compressed': '308.67 TiB', 'Memory Used': '-1685398451388416.00 Bytes', 'Wired Memory': '580.00 GiB', 'Swap Used': '5.38 KiB'}
Memory  >> {'App Memory': '2.80 TiB', 'Free Memory': '688.09 MiB', 'Cached Files': '1532.90 TiB', 'Compressed': '308.67 TiB', 'Memory Used': '-1685402746355712.00 Bytes', 'Wired Memory': '580.00 GiB', 'Swap Used': '5.39 KiB'}

麻烦帮忙确认下采集是不是有问题,感谢!

YueChen-C commented 3 weeks ago

确实有问题,我看一下怎么回事

YueChen-C commented 3 weeks ago

之前版本改出问题了 2.4.13 已修复

986379041 commented 3 weeks ago

太好了,看起来数据正常了,顺便再问一下大佬,有方法可以只输出一次内存信息吗?我可能希望拿一次数据记录一下初始的内存信息,感谢!

YueChen-C commented 2 weeks ago

太好了,看起来数据正常了,顺便再问一下大佬,有方法可以只输出一次内存信息吗?我可能希望拿一次数据记录一下初始的内存信息,感谢!

只能自己写脚本实现了,命令行不支持