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

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

Open
986379041 opened this issue Jun 13, 2024 · 4 comments

Comments

@986379041
Copy link

Smartphone (please complete the following information):

  • Device: iPhone 11 Pro
  • OS: iOS14.4
  • Pyidevice Version : 2.4.12

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
Copy link
Owner

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

YueChen-C added a commit that referenced this issue Jun 14, 2024
@YueChen-C
Copy link
Owner

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

@986379041
Copy link
Author

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

@YueChen-C
Copy link
Owner

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

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

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