python - 如何在不检查应用代码的情况下监控ios的进程、内存、GPU?
问题描述
有没有什么工具可以帮助我和ios沟通,知道它的Memory、cpu、process,就像xcode的Instruments一样?</p>
虽然我知道 xcrun xctrace
可以得到我想要的数据,但我不能使用 python 解码它。
解决方案
使用“ xcrun xctrace export
”解码跟踪文件。
描述:使用提供的查询将给定的 .trace 导出为 XML 文件格式,以后可以读取和后处理
例如:
xcrun xctrace export --input recording.trace --output recording.xml --xpath '/trace-toc/run[@number="1"]/data/table[@schema="activity-monitor-process-ledger"]'
推荐阅读
- java - 我遇到了将值从 JSON 对象分配给局部变量的问题,调试器显示变量 = 'this' 不可用
- angular - Angular - 如何在没有响应的情况下订阅 http 服务
- java - 发布通知渠道空日志失败?
- spring-boot - @SpringBootTest vs @ContextConfiguration vs @Import 在 Spring Boot 单元测试中
- jquery - 未捕获的类型错误:无法读取未定义的属性“设置”以进行 jquery 验证
- php - 如何在 PHP 中显示这个多维数组?
- java - ikvm 未处理的异常:System.TypeLoadException
- swift - 使用 Firebase 的 OAuth 问题通过 Facebook 登录(input_token 中的 App_id 与查看应用程序不匹配)
- wordpress - 如何永久禁用 Wordpress Gutenburg 的“此块包含无效内容”消息?
- angular - 类型“{}”上不存在属性“推送”